Created
March 6, 2015 09:55
-
-
Save greenweb/633a95ac3c6026d089b4 to your computer and use it in GitHub Desktop.
WP-CLI Install
This file contains hidden or 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
# WP-CLI Install | |
if [ ! -e /var/www/wp-cli/bin/wp ]; then | |
printf "\nInstalling wp-cli\n" | |
git clone git://github.com/wp-cli/wp-cli.git /var/www/wp-cli | |
cd /var/www/wp-cli | |
composer install | |
else | |
printf "\nSkip wp-cli installation, already available\n" | |
fi | |
# Link wp to the /usr/local/bin directory | |
sudo ln -sf /var/www/wp-cli/bin/wp /usr/local/bin/wp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment