Technical & DevelopmentIntermediate
wp-wpcli-and-ops
WP-CLI commands, automation, multisite, search-replace
Developer Setup
Setup & Installation
bash
npx skills add https://github.com/WordPress/agent-skills --skill wp-wpcli-and-opsnpx skills add https://github.com/WordPress/agent-skills --skill wp-wpcli-and-opsOr paste this URL into your assistant to install:
Overview
What This Skill Does
WP-CLI commands, automation, multisite, search-replace
Application
When to use this Skill
- Integrating wp wpcli and ops into your development workflow.
- Following best practices for wp-cli commands, automation, multisite, search-replace.
- Automating repetitive tasks with AI-assisted tooling.
- Building production-grade applications with proper standards.
- Debugging and troubleshooting common implementation issues.
Documentation
Show Skills.md file
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
Lines 1 - 25 of 117
Recommendations