Skip to content

Instantly share code, notes, and snippets.

@saxenap
Last active December 1, 2015 15:25
Show Gist options
  • Save saxenap/0be7986bf9a103252479 to your computer and use it in GitHub Desktop.
Save saxenap/0be7986bf9a103252479 to your computer and use it in GitHub Desktop.
#!/bin/bash
# To get:
# rm -rf WP-CLI-Install && wget -O WP-CLI-Install https://gist.githubusercontent.com/saxenap/0be7986bf9a103252479/raw && chmod 777 WP-CLI-Install && ./WP-CLI-Install
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod 755 wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
sudo ln -s /usr/local/bin/wp /usr/bin/wp
echo " Installed: WP-CLI."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment