# Drush Commands

> >-

- **Type:** Skill
- **Install:** `agentstack add skill-trebormc-drupal-ai-agents-drush-commands`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [trebormc](https://agentstack.voostack.com/s/trebormc)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [trebormc](https://github.com/trebormc)
- **Source:** https://github.com/trebormc/drupal-ai-agents/tree/main/.claude/skills/drush-commands

## Install

```sh
agentstack add skill-trebormc-drupal-ai-agents-drush-commands
```

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

## About

## Environment

All Drush commands run via `ssh web drush`.
NEVER use just `drush` — it will not be found without the full vendor path.

## Common operations

| Task | Command |
|------|---------|
| Clear all caches | `ssh web drush cr` |
| Run database updates | `ssh web drush updb -y` |
| Enable module | `ssh web drush en  -y` |
| Uninstall module | `ssh web drush pmu  -y` |
| Check Drupal status | `ssh web drush status` |
| Run cron | `ssh web drush cron` |
| One-time login | `ssh web drush uli` |
| List enabled modules | `ssh web drush pm:list --status=enabled` |
| Check pending updates | `ssh web drush updb --no` |
| Watchdog logs | `ssh web drush ws --count=20` |
| Rebuild permissions | `ssh web drush php-eval "node_access_rebuild();"` |
| Locale update | `ssh web drush locale:check && ssh web drush locale:update` |

## After code changes (mandatory order)

1. `ssh web drush updb -y` (apply hook_update_N)
2. `ssh web drush cim -y` (import config changes)
3. `ssh web drush cr` (rebuild caches)

## Custom Drush commands (Drush 12+)

Place in `src/Commands/` using attribute pattern:

```php
io()->success('Done.');
  }

}
```

## Verification

```bash
# Verify Drush is working
ssh web drush status --field=drupal-version
```

## Source & license

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

- **Author:** [trebormc](https://github.com/trebormc)
- **Source:** [trebormc/drupal-ai-agents](https://github.com/trebormc/drupal-ai-agents)
- **License:** Apache-2.0

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:** no
- **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-trebormc-drupal-ai-agents-drush-commands
- Seller: https://agentstack.voostack.com/s/trebormc
- 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%.
