Acquia CLI

remote:ssh

Use SSH to open a shell or run a command in a Cloud Platform environment

This command requires authentication via the Cloud Platform API.

Usage

acli remote:ssh <alias> [<ssh_command>...]
acli remote:ssh myapp.dev # open a shell in the myapp.dev environment
acli remote:ssh myapp.dev -- ls -al # list files in the myapp.dev environment and return
acli ssh

Arguments

  • alias

    Required

    Alias for application & environment in the format `app-name.env`

  • ssh_command

    Optional

    Command to run via SSH (if not provided, opens a shell in the site directory)

    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

Help

Ask a question

Common questions

If you can't find what you're looking for, then you can reach out to our Support team for further assistance.