# Remote Access

> Use when SSHing into a Cloud environment, running Drush commands remotely, or tailing live application logs.

- **Type:** Skill
- **Install:** `agentstack add skill-acquia-acquia-skills-remote-access`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [acquia](https://agentstack.voostack.com/s/acquia)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [acquia](https://github.com/acquia)
- **Source:** https://github.com/acquia/acquia-skills/tree/main/skills/acli/remote-access

## Install

```sh
agentstack add skill-acquia-acquia-skills-remote-access
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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:

```bash
acli remote:ssh 
```

Alias: `acli ssh`

The alias format is `app-name.env` (e.g. `myapp.prod`, `myapp.dev`).

```bash
# Open interactive shell
acli remote:ssh myapp.prod

# Run a single command without opening a shell
acli remote:ssh myapp.prod -- ls -la /var/www/html

# Run multiple commands
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:

```bash
acli remote:drush 
```

Aliases: `acli drush`, `acli dr`

```bash
# Check Drupal status
acli remote:drush status

# Clear caches
acli remote:drush cr

# Run database updates
acli remote:drush updatedb

# Export configuration
acli remote:drush cex
```

---

## Tail Logs Live

Stream live logs from an environment:

```bash
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:

```bash
acli remote:aliases:list
```

Aliases: `acli aliases`, `acli sa`

---

## Download Drush Aliases

Download Drush aliases for use with local Drush:

```bash
acli remote:aliases:download
```

Options:

```bash
acli remote:aliases:download \
  --destination-dir=/path/to/aliases \
  --all                               # download aliases for all applications
```

---

## Best Practices

1. **Use `remote:drush` over SSH for Drush commands** — It handles authentication and environment selection automatically.
2. **Use aliases** — Download aliases with `remote:aliases:download` so local Drush can target Cloud environments directly.
3. **Tail logs during deploys** — Run `acli app:log:tail` while deploying to catch errors in real time.

---

## Related Topics

- **[Pull & Push](../pull-push/SKILL.md)** — Sync code, files, and databases
- **[SSH Key Management](../ssh-key-management/SKILL.md)** — Secure access setup
- **[Environment Management](../environment-management/SKILL.md)** — Manage environments

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [acquia](https://github.com/acquia)
- **Source:** [acquia/acquia-skills](https://github.com/acquia/acquia-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-acquia-acquia-skills-remote-access
- Seller: https://agentstack.voostack.com/s/acquia
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
