| name | remote-access |
| description | Use when SSHing into a Cloud environment, running Drush commands remotely, or tailing live application logs. |
| license | Proprietary |
| compatibility | acli>=2.x |
| metadata | {"category":"authentication","author":"Acquia","version":"1.0.0","tags":"acli, acquia-cloud, ssh, drush, logs, remote","software_requirements":"acli>=2.x"} |
Remote Access with Acquia CLI
Use when:
- Opening an SSH shell on a Cloud environment
- Running a Drush command on a remote environment
- Downloading or listing Drush aliases
- Tailing live logs from an environment
SSH into a Cloud Environment
Open an interactive shell in a Cloud Platform environment:
acli remote:ssh <alias>
Alias: acli ssh
The alias format is app-name.env (e.g. myapp.prod, myapp.dev).
acli remote:ssh myapp.prod
acli remote:ssh myapp.prod -- ls -la /var/www/html
acli remote:ssh myapp.prod -- "cd /var/www/html && git log --oneline -5"
Run Drush Remotely
Run any Drush command on a Cloud environment without SSHing in manually:
acli remote:drush <drush_command>
Aliases: acli drush, acli dr
acli remote:drush status
acli remote:drush cr
acli remote:drush updatedb
acli remote:drush cex
Tail Logs Live
Stream live logs from an environment:
acli app:log:tail
Aliases: acli tail, acli log:tail
Prompts you to select the application, environment, and log type.
List Drush Aliases
List all Drush site aliases for your Cloud environments:
acli remote:aliases:list
Aliases: acli aliases, acli sa
Download Drush Aliases
Download Drush aliases for use with local Drush:
acli remote:aliases:download
Options:
acli remote:aliases:download \
--destination-dir=/path/to/aliases \
--all
Best Practices
- Use
remote:drush over SSH for Drush commands — It handles authentication and environment selection automatically.
- Use aliases — Download aliases with
remote:aliases:download so local Drush can target Cloud environments directly.
- Tail logs during deploys — Run
acli app:log:tail while deploying to catch errors in real time.
Related Topics