Acquia CLI

remote:drush

Run a Drush command remotely on a Cloud Platform environment

<fg=black;bg=cyan>Pay close attention to the argument syntax! Note the usage of <options=bold;bg=cyan>-- to separate the drush command arguments and options. This command requires authentication via the Cloud Platform API.

Usage

acli remote:drush [<environmentId> [<drush_command>...]]
acli remote:drush [<environmentAlias>]
acli remote:drush myapp.dev
acli remote:drush prod:myapp.dev
acli remote:drush 12345-abcd1234-1111-2222-3333-0e02b2c3d470
acli remote:drush <app>.<env> -- <command>
acli remote:drush myapp.dev -- uli 1
acli remote:drush myapp.dev -- status --fields=db-status
acli drush
acli dr

Arguments

  • environmentId

    Optional

    The Cloud Platform environment ID or alias (i.e. an application and environment name optionally prefixed with the realm)

  • drush_command

    Optional

    Drush command

    Defaults to []

Options

  • --help | -h

    Optional

    Display help for the given command. When no command is given display help for the `list` command

    Defaults to false

  • --quiet | -q

    Optional

    Do not output any message

    Defaults to false

  • --verbose | -v|-vv|-vvv

    Optional

    Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

    Defaults to false

  • --version | -V

    Optional

    Display this application version

    Defaults to false

  • --ansi

    Optional

    Force (or disable --no-ansi) ANSI output

  • --no-ansi

    Optional

    Negate the "--ansi" option

    Defaults to false

  • --no-interaction | -n

    Optional

    Do not ask any interactive question

    Defaults to false

Acquia Help

Filter by product:

Common questions