Skip to content

Instantly share code, notes, and snippets.

@cliftonc0613
Forked from ajaegers/update-wp-cli.sh
Created March 31, 2017 14:25
Show Gist options
  • Save cliftonc0613/9e0aa5ec0a68897647bd1b381ab7ed91 to your computer and use it in GitHub Desktop.
Save cliftonc0613/9e0aa5ec0a68897647bd1b381ab7ed91 to your computer and use it in GitHub Desktop.
Updating local wp-cli
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