Last active
October 24, 2017 18:25
-
-
Save paulsheldrake/a15db9479fc5fc88d8a3b3faaba6a950 to your computer and use it in GitHub Desktop.
Install WP-CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
php wp-cli.phar --info | |
chmod +x wp-cli.phar | |
sudo mv wp-cli.phar /usr/local/bin/wp | |
cd ~/ | |
wget https://raw.githubusercontent.com/wp-cli/wp-cli/master/utils/wp-completion.bash | |
echo 'source /home/vagrant/wp-completion.bash' >> ~/.bash_profile | |
source ~/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment