drush core-execute

Execute a shell command. Usually used with a site alias.

Drush Command

drush core-execute

Arguments

command : The shell command to be executed.

Aliases

drush exec
drush execute

Options

--escape : Escape parameters before executing them with the shell. Default is escape; use --no-escape to disable.
--ssh-options : A string of extra options that will be passed to the ssh command (e.g. "-p 100")
--tty : Create a tty (e.g. to run an interactive program).
--escaped : Command string already escaped; do not add additional quoting.

Examples

Retrieve latest code from git

drush core-execute git pull origin rebase