You can run any command against all sites in a network by combining the wp site list
and the | xargs
:
wp site list --field=url | xargs -n1 -I % wp --url=% transient delete --all
Source: https://runcommand.io/to/run-wp-cli-command-wordpress-multisite/