-
-
Save cliftonc0613/9e0aa5ec0a68897647bd1b381ab7ed91 to your computer and use it in GitHub Desktop.
Updating local 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
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