Created
May 25, 2015 15:57
-
-
Save ajaegers/ef572aebceae9dab6a20 to your computer and use it in GitHub Desktop.
Updating local wp-cli
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
echo '1. Updating WP-CLI in /usr/local/bin/' \ | |
&& echo '2. Current version: ' \ | |
&& wp --version \ | |
&& cd /usr/local/bin \ | |
&& curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \ | |
&& chmod +x wp-cli.phar \ | |
&& echo '3. WP-CLI test...' \ | |
&& php wp-cli.phar --version \ | |
&& echo '4. Replacing...' \ | |
&& sudo mv wp-cli.phar wp \ | |
&& echo '5. Finished :)'\ | |
&& pwd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment