Skip to content

Instantly share code, notes, and snippets.

@jmslbam
Last active July 8, 2017 03:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmslbam/7267856 to your computer and use it in GitHub Desktop.
Save jmslbam/7267856 to your computer and use it in GitHub Desktop.
WP-CLI snippet solutions collected from WP-CLI issues
#!/bin/bash
# Provide a way to upgrade the network after `wp core update`
# https://github.com/wp-cli/wp-cli/issues/683
for url in $(wp site list --fields=url --format=csv | tail -n +2)
do
wp --url=$url core update-db
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment