Drush Webmaster does not restrict which commands AI agents can run. Any AI assistant with access to drush can create, edit, and delete content, fields, views, menus, and site configuration. Command-level restrictions are intentionally omitted because AI agents can work around them via drush eval, direct database access, or other drush commands.
Instead, use --dry-run to preview changes before applying, and always review AI-proposed changes on sites with real content. Recommended for experienced Drupal developers and site administrators.
Drush Webmaster provides a comprehensive suite of Drush commands (wm:*) designed for AI-assisted Drupal site management. Query, create, edit, and inspect entities, content types, views, menus, vocabularies, blocks, media, translations, and moderation workflows — all through structured YAML output optimized for AI agents and human operators alike.
Dump the full site schema (content types, views, vocabularies, menus, blocks, media types, entity types) in a single command. Provides complete AI context for understanding an unfamiliar Drupal site.
Query entities with field conditions and operators (=, !=, >, <, IN, NULL), get/set individual field values, clone entities (with or without references), compare entities with diff, and track YAML version history with revert support.
Export any entity or view to a versioned YAML file, modify it, then apply with built-in validation. Supports --dry-run for previewing changes before saving. Templates for new entities pre-fill all available fields.
Create, update, or delete multiple entities in a single operation using YAML input.
List, create, clone, edit, preview, enable/disable, and delete views. Discovery helpers list available fields, filters, sorts, arguments, relationships, and areas for any base table.
Create, update, and delete content types. Add, update, and remove fields from bundles. List available field types and inspect field configurations.
Create menus, add/update/delete menu links with full hierarchy support.
List configured languages, view entity translations, add or update translations with JSON field values, and delete translations. Requires Drupal's Language and Content Translation modules.
View current moderation state and available transitions, then move entities through workflow states (draft, review, published, archived). Requires Drupal's Content Moderation module.
Search across all indexed content and return results with title, URL, and snippet. Use alongside wm:entity:query for field-level precision or wm:search for keyword discovery.
Clone entities with wm:entity:clone or deep-clone with all referenced entities via wm:entity:deep-clone. Compare any two entities side-by-side with wm:entity:diff.
Every edit creates a versioned YAML file. Browse previous versions with wm:entity:history and restore any prior state with wm:entity:revert.
AI assistants can save site-specific knowledge (field conventions, content type names, gotchas) that persists across sessions. Each session starts with the AI already knowing this site's quirks, reducing repeated discovery and errors. Claude Code feature.
| Category | Commands | Description |
|---|---|---|
| Discovery | wm:schema:dump, wm:schema:sections, wm:site:info |
Full site schema dump with section filtering, site metadata |
| Entity Query | wm:entity:query, wm:entity:list, wm:search |
Field-condition queries with operators, sorting, pagination, full-text search |
| Entity CRUD | wm:entity:get, wm:entity:new, wm:entity:edit, wm:entity:apply |
Get, create, and edit entities via YAML export/apply workflow |
| Entity Fields | wm:entity:field:get, wm:entity:field:set, wm:entity:fields |
Get/set individual field values, list fields on a bundle |
| Entity Operations | wm:entity:clone, wm:entity:deep-clone, wm:entity:diff, wm:entity:history, wm:entity:revert |
Clone, compare, version history, and revert entities |
| Bulk | wm:entity:bulk-create, wm:entity:bulk-update, wm:entity:bulk-delete |
Batch entity operations via YAML input |
| Content Types | wm:content-type:list, wm:content-type:get, wm:content-type:create, wm:content-type:update, wm:content-type:delete, wm:content-type:stats |
Full content type lifecycle management |
| Fields | wm:field:list, wm:field:get, wm:field:add, wm:field:update, wm:field:delete, wm:field:types |
Field management on entity bundles |
| Views | wm:view:list, wm:view:get, wm:view:create, wm:view:clone, wm:view:edit, wm:view:apply, wm:view:preview, wm:view:delete, wm:view:enable, wm:view:disable |
Full views lifecycle with YAML edit/apply workflow |
| View Discovery | wm:view:tables, wm:view:available:fields, wm:view:available:filters, wm:view:available:sorts, wm:view:available:arguments, wm:view:available:relationships, wm:view:available:areas |
Discover available base tables, fields, filters, sorts, and relationships for building views |
| Menus | wm:menu:list, wm:menu:get, wm:menu:create, wm:menu:delete, wm:menu:link:list, wm:menu:link:add, wm:menu:link:update, wm:menu:link:delete |
Menu and menu link management with hierarchy |
| Vocabularies | wm:vocabulary:list, wm:vocabulary:get, wm:vocabulary:create, wm:vocabulary:update, wm:vocabulary:delete |
Taxonomy vocabulary management |
| Blocks | wm:block:list, wm:block:get, wm:block:place, wm:block:update, wm:block:remove, wm:block:types |
Block placement and management by region |
| Media | wm:media-type:list, wm:media-type:get |
Media type inspection |
| Translation | wm:translation:languages, wm:entity:translations, wm:entity:translation:get, wm:entity:translation:set, wm:entity:translation:delete |
Multilingual content management |
| Moderation | wm:entity:transitions, wm:entity:moderate |
Content moderation workflow transitions |
composer require drupal/drush_webmasterdrush en drush_webmasterdrush wm:setup-ai — copies the Claude Code skill files to your project root so AI assistants can automatically discover and use wm:* commands. This step is required for Claude Code, Cursor, and other SKILL.md-compatible AI tools to work with Drush Webmaster.drush wm:schema:dump --section=sitedrush wm:[command] --help on any command for full documentationwm:* commands with Webform support for managing forms and submissions via Drushwm:* commands with Redirect module support for managing URL redirects via DrushDefault to Discover → Inspect → Modify. Always run the appropriate discovery command before any write operation.
wm:schema:dump, wm:content-type:get, wm:entity:query, wm:searchwm:entity:get, wm:view:get, wm:field:list, wm:entity:transitionswm:entity:edit → modify YAML → wm:entity:apply --dry-run → wm:entity:applywm:entity:new → fill template → wm:entity:apply node new| Operation | Run first |
|---|---|
| Create entity | wm:content-type:get [bundle] — see required fields and types |
| Edit entity fields | wm:entity:get [type] [id] — see current field values |
| Delete entity | wm:entity:get [type] [id] — confirm correct entity before deletion |
| Add field to bundle | wm:field:list then wm:field:types — see existing fields and available types |
| Create/edit view | wm:view:tables then wm:view:available:fields — see available fields, filters, sorts |
| Translate entity | wm:translation:languages — see configured languages |
| Moderate entity | wm:entity:transitions — see valid state transitions |
| Bulk operations | wm:content-type:get [bundle] or wm:entity:query — verify scope before batch operations |
Drush Webmaster is designed from the ground up for AI-assisted site management. It implements the Agent Skills open standard, making it compatible with all major AI coding assistants:
And other tools that support the Agent Skills standard (Kiro, Junie, Factory Droid, etc.).
A SKILL.md is a standard file format that teaches AI coding assistants how to use a tool. It describes available commands, when to use them, and how they work. AI tools discover skill files automatically and invoke them when your request matches. The standard is maintained at agentskills.io.
After installing the module, run drush wm:setup-ai to enable AI coding assistant support. This copies skill files to your project root so all supported AI tools can discover them automatically.
Your AI assistant will then respond to natural language like:
drush wm:setup-ai to install the skillThe AI will automatically use wm:* commands for all of these.
.agents/skills/ works with Codex, Gemini, Copilot, Cursoragents/openai.yaml for automatic Codex CLI discoverydrush wm:setup-ai — the skill files may not be at the project root yet.drush en drush_webmaster and drush cr.drush instead of ddev drush? Tell your AI to use the wrapper command, or set it in the conversation context.drush wm:setup-ai --host=agents to install the cross-agent variant at .agents/skills/.drush wm:setup-ai again — it overwrites with the latest version.drush wm:setup-ai — it adds a ## Skill routing section to CLAUDE.md.drush (or ddev drush). Tell your AI to use the wrapper command.Drupal has a growing ecosystem of AI integration projects. Here's how Drush Webmaster fits in:
| Drush Webmaster | MCP Tools | AI Agents | Agentic Skills | |
|---|---|---|---|---|
| What it does | CLI commands for AI-assisted site management | MCP server exposing 223 Drupal tools | LLM-powered agents inside Drupal | SKILL.md files for Drupal development practices |
| Integration | Agent Skills (SKILL.md) | MCP protocol | Drupal AI module + LLM API | Agent Skills (SKILL.md) |
| Works with | Claude Code, Codex, Gemini, Copilot, Cursor, Kiro, Junie | Claude Desktop, Cursor, Windsurf | Drupal chatbot UI, Drush | Claude Code, Codex, Gemini, Copilot, Cursor |
| LLM API keys needed on server? | No | No | Yes (per-call cost) | No |
| Server process required? | No — skill files only | Yes — MCP server | No — runs inside Drupal | No — skill files only |
| Scope | Content types, fields, entities, views, menus, blocks, media, vocabularies, webforms, redirects, translations, moderation | Content types, fields, views, blocks, Layout Builder, config, roles, permissions, image styles | Content types, fields, taxonomies | Coding standards, testing, security, documentation |
| PHP requirement | 8.1+ | 8.3+ | 8.1+ | N/A |
| Dry-run support | Yes — all write operations | No | No | N/A |
| Command restrictions | None — full access, use --dry-run to preview |
None | Drupal permissions | N/A |
| Production use | Yes — for experienced users | Local dev only | Yes | Yes |
| Setup | drush wm:setup-ai |
MCP client configuration | AI module + provider config | npx skills add |
These projects serve different purposes and work well alongside Drush Webmaster:
wm:search)Spin up DXPR CMS — Drupal pre-configured with DXPR Builder, DXPR Theme, AI modules, and Drush Webmaster included.