Skip to content

Instantly share code, notes, and snippets.

@ajaegers
Created May 25, 2015 15:57
Show Gist options
  • Save ajaegers/ef572aebceae9dab6a20 to your computer and use it in GitHub Desktop.
Save ajaegers/ef572aebceae9dab6a20 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