You need to apply a wp-cli command to every blog of a WordPress multisite installation?
List all pages and pipe the URLs using xargs
to your wp
command:
wp site list --field=url | xargs -n1 -I % wp --url=% YOUR_WP_COMMAND_HERE
-
Deativate plugin on every subsite:
wp site list --field=url | xargs -n1 -I % wp --url=% plugin deactivate PLUGIN_SLUG