Skip to content

Instantly share code, notes, and snippets.

@davemac
Created May 22, 2017 04:02
Show Gist options
  • Save davemac/111efb052a1b32d8eb4d33ad479c95c3 to your computer and use it in GitHub Desktop.
Save davemac/111efb052a1b32d8eb4d33ad479c95c3 to your computer and use it in GitHub Desktop.
wp-cli update core and plugins across multiple sites
Updating WP-Core on multiple sites:
find /home/*/public_html -name "wp-admin" -execdir /home/wp core update --allow-root \;
Updating plugins on multiple sites:
find /home/*/public_html -name "wp-admin" -execdir /home/wp plugin update-all --allow-root \;
Found here: https://wordpress.stackexchange.com/questions/267592/changing-the-wp-cli-cache-folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment