wp-wpcli-and-ops

Installation
Summary

WordPress operations and automation via WP-CLI with safe search-replace, database management, and multisite support.

  • Covers search-replace for domain migrations, database export/import, plugin/theme/user management, cron inspection, and cache flushing
  • Includes built-in guardrails: environment confirmation, dry-run validation, and backup workflows before destructive operations
  • Supports multisite operations with site-specific (--url) and network-wide (--network) targeting
  • Enables automation through wp-cli.yml configuration, shell scripts, and CI job patterns with deterministic site inspection
  • Requires WP-CLI installed in the execution environment and targets WordPress 6.9+ with PHP 7.2.24+
SKILL.md

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>
Related skills

More from wordpress/agent-skills

Installs
1.2K
GitHub Stars
1.5K
First Seen
Feb 1, 2026