
Wp Wpcli And Ops
wordpress/agent-skillsOfficial
Operational WP-CLI playbook for search-replace, database backups, plugin and theme management, cron, cache flushing, and multisite.
- skills.sh installs
- 6.2K
- GitHub stars
- 2.4K
- last updated
- Aug 21, 2026
What it does
- Covers safe URL and domain migrations via
wp search-replace, with a backup and dry-run sequence before any real write - Includes
wpcli_inspect.mjsto verify WP-CLI availability and site targeting through--pathand--urlbefore running commands - Enforces a confirm-environment, confirm-target, and back-up-first guardrail before any write operation
- Designed for WordPress operators and CI pipelines that need repeatable scripts driven by
wp-cli.yml
Install
$ npx -y skills add wordpress/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/wordpress/agent-skills
- Categories
- PHP & Laravel, DevOps & Cloud
- First seen
- Apr 16, 2026
More from wordpress/agent-skills
All 17- Wp Project Triage6.2K
- Wp Block Development6.1K
- Wp Playground5.3K
- Wp Phpstan5.1K
- Wp Abilities Api4.8K
- Wp Interactivity Api4.6K
- Wpds4.5K
- Blueprint4.1K
- Wp Plugin Directory Guidelines4.1K
- Wp Abilities Audit3.1K
- Wp Abilities Verify3K
- Wp Plugin Development9K
- Wp Performance7K
- Wp Rest Api6.6K
- Wp Block Themes6.5K
- Wordpress Router6.3K
Similar to Wp Wpcli And Ops
More PHP & Laravel
wordpress-contentSkilljezweb/claude-skills1.7K installsCreate, update, and schedule WordPress posts, pages, media, taxonomy, and menus via WP-CLI or REST.
wp-plugin-developmentSkillwordpress/agent-skills9K installsA structured guide for WordPress plugin work covering architecture, lifecycle, settings, security, and data handling.
wp-performanceSkillwordpress/agent-skills7K installsBackend-only agent that profiles and optimizes WordPress performance via WP-CLI, headless Query Monitor, and safe verification.
Elementor Mcp AgentMCP servermogacode-ma3 starsMulti-site WordPress Elementor editing with backups, rollback, templates, and widget-level controls.
wordpress-elementorSkilljezweb/claude-skills3.1K installsEdit Elementor pages and templates by WP-CLI for safe text swaps or browser automation for structural changes.
workflow-automationSkillhubspot/agent-cli-skills1.9K installsNative CLI workflow management for HubSpot v4 flows, distinct from the developer CLI and classic v3 workflows.