"multi-exec"

Perform a drush core command on all sites (batch mode).

Aliases

mex

Arguments

command

The drush command to execute. For drush commands with blanks like 'watchdog show' make sure to use single or double quotes. Mandatory.

Options

--argument

Argument to pass to drush command e.g. 'site_offline 1' as argument for 'variable-set'. Optional.

--option

Option to pass to drush command. or drush itself e.g. '--nocolor' to suppress color highlighting on log messages. Optional.

Examples

 drush -r /path/to/drupal multi-exec cron
Run all cron hooks on all sites in your multisite installation.
 drush -r /path/to/drupal multi-exec variable-set --argument='site_offine 1' --option='--nocolor'
Put all sites in maintenance mode without using color highlighting on log messages.
 drush -r /path/to/drupal multi-exec updatedb
Execute the update.php process for all sites.
 drush -r /path/to/drupal multi-exec cache-clear
Flushes the cache for all sites

Generated on Sat May 8 17:31:44 2010 for drush_multi by  doxygen 1.5.8