Skip to content

Instantly share code, notes, and snippets.

@greenbicycle
Created September 8, 2016 03:16
Show Gist options
  • Save greenbicycle/00c1bed1cc498afb4661fde0861c0195 to your computer and use it in GitHub Desktop.
Save greenbicycle/00c1bed1cc498afb4661fde0861c0195 to your computer and use it in GitHub Desktop.
wp-cli-update script
#!/bin/bash
# wp-cli-update
#
# Download the latest wp-cli and put it wherever it is supposed
# to go.
#
WPCLI_LOCATION=/usr/local/sbin/wp
curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
-o $WPCLI_LOCATION
chmod u+x $WPCLI_LOCATION
@greenbicycle
Copy link
Author

I don't think is necessary anymore. You can do wp cli update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment