
Wp Wpcli And Ops
Teaches Claude to run WordPress ops through WP-CLI without blowing things up. Covers the common stuff like search-replace for migrations, database exports, plugin management, cron debugging, and multisite targeting. The safety-first approach is smart: it includes an inspector script to confirm you're pointed at the right site, enforces dry-run checks before destructive commands, and won't let you skip backups on risky operations. Good if you're automating WordPress deployments or need to script repetitive admin tasks across staging and production. The multisite guidance alone (url vs network flags) will save you from at least one very bad day.
- skills.sh installs
- 472
- GitHub stars
- 211
- last updated
- Jun 3, 2026
Install
$ npx -y skills add automattic/agent-skills --skill wp-wpcli-and-ops --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/automattic/agent-skills
- Category
- AI & Agent Building
- First seen
- Jun 3, 2026