Wp Wpcli And Ops
Operational WP-CLI workflows for search-replace, database backups, plugin and theme management, cron, cache flushing, and multisite.
- CCM score
- 53 of 100
- skills.sh installs
- 508
- GitHub stars
- 211
- last updated
- Jun 3, 2026
Own this skill? Claim it
What it does
- Covers safe URL and domain migrations: backup,
wp search-replace --dry-runreview, then the real replace with cache flushing - Includes reference guides for safety, search-replace, packages and updates, cron and cache, multisite, automation, and debugging
- Enforces a rule that write operations do not run until environment and site targeting are confirmed, with backups for risky changes
- Designed for WordPress operators working in local, staging, or production environments who need repeatable scripts via
wp-cli.yml
Install
$ npx -y skills add automattic/agent-skills --skill wp-wpcli-and-ops -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
WP-CLI and Ops
When to use
Use this skill when the task involves WordPress operational work via WP-CLI, including:
wp search-replace(URL changes, domain migrations, protocol switch)- DB export/import, resets, and inspections (
wp db *) - plugin/theme install/activate/update, language packs
- cron event listing/running
- cache/rewrite flushing
- multisite operations (
wp site *,--url,--network) - building repeatable scripts (
wp-cli.yml, shell scripts, CI jobs)
Inputs required
- Where WP-CLI will run (local dev, staging, production) and whether it’s safe to run.
- How to target the correct site root:
--path=<wordpress-root>and (multisite)--url=<site-url>
- Whether this is multisite and whether commands should run network-wide.
- Any constraints (no downtime, no DB writes, maintenance window).
Procedure
0) Guardrails: confirm environment and blast radius
WP-CLI commands can be destructive. Before running anything that writes:
- Confirm environment (dev/staging/prod).
- Confirm targeting (path/url) so you don’t hit the wrong site.
- Make a backup when performing risky operations.
Read:
references/safety.md
Details
- Repository
- github.com/automattic/agent-skills
- Categories
- PHP & Laravel, DevOps & Cloud
- First seen
- Jun 3, 2026
Questions
Which skill helps an agent run WP-CLI commands for WordPress operations?
The wp-wpcli-and-ops skill guides an agent through WP-CLI work on WordPress, including safe search-replace for URL and domain changes, database export and import, plugin, theme and user management, cron, cache flushing, and multisite operations. It also covers scripting repeatable tasks with wp-cli.yml.
How do I install the wp-wpcli-and-ops skill?
Run npx -y skills add automattic/agent-skills --skill wp-wpcli-and-ops -y in your project. Once installed, the agent can follow the skill's procedures for WP-CLI tasks such as safe URL migrations and multisite changes.
What does the wp-wpcli-and-ops skill need to run?
The skill requires WP-CLI available in the execution environment and targets WordPress 6.9+ with PHP 7.2.24+. You also need to confirm the environment and the site path or URL before any write operation, because the skill follows a backup-first approach.
Where does the wp-wpcli-and-ops skill sit in its category?
It is listed under PHP & Laravel on Claude Marketplaces and ranks in the top 100 of that category. Other skills in the category include laravel-specialist, php-pro and laravel-patterns, while this one focuses on WordPress operations through WP-CLI.
More from automattic/agent-skills
All 12Similar to Wp Wpcli And Ops
More PHP & Laravelwp-plugin-developmentSkillautomattic/agent-skills566 installsWordPress plugin development guidance covering architecture, lifecycle hooks, Settings API, and security baseline.
wordpress-contentSkilljezweb/claude-skills1.8K installsCreate, update, and schedule WordPress posts, pages, media, taxonomy, and menus via WP-CLI or REST.
wp-performanceSkillautomattic/agent-skills449 installsBackend-only WordPress performance playbook for profiling, query and autoload tuning, caching, cron, and verified fixes.
Elementor Mcp AgentMCP servermogacode-ma3 starsMulti-site WordPress Elementor editing with backups, rollback, templates, and widget-level controls.
wordpress-elementorSkilljezweb/claude-skills3.2K installsEdit Elementor pages and templates by WP-CLI for safe text swaps or browser automation for structural changes.
data-migration-scriptsSkillaj-geddes/useful-ai-prompts433 installsReversible database migration scripts with batched backfills, validation checks, and zero-downtime deployment patterns.