wp-wpcli-and-ops

Automate WordPress operational tasks via WP-CLI with safe search-replace and database management.

2|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/joseconti/mcp-skills --skill wp-wpcli-and-ops-joseconti
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wp-wpcli-and-ops
Source: https://github.com/joseconti/mcp-skills/tree/main/wp-wpcli-and-ops
Command: npx skills add https://github.com/joseconti/mcp-skills --skill wp-wpcli-and-ops-joseconti

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Streamline and automate WordPress operational tasks via WP-CLI, including safe search-replace, db export/import, plugin/theme/user management, cron, and caching tasks.

Core Features & Use Cases

  • Safe search-replace with dry-run capability for migrations and URL updates.
  • Database export/import, backups, and site inspections for single-site and multisite setups.
  • Plugin/theme management, user/content operations, and cron/caching workflows across environments.

Quick Start

Run the deterministic WP-CLI workflow by inspecting the environment with wpcli_inspect.mjs and following the task-specific guidance (migrations, updates, or maintenance).

Frequently Asked Questions about wp-wpcli-and-ops

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate WordPress search-replace tasks safely across environments?

Automate WordPress database export and import using WP-CLI commands to create backups and perform site inspections. It supports both single-site and multisite setups, ensuring deterministic workflows across development, staging, and production environments.

Does this WP-CLI automation approach work for WordPress multisite network operations?

Yes, WP-CLI automation works for WordPress multisite network operations by utilizing specific flags like --url or --network. This allows targeted plugin, theme, and user management across subsites within development, staging, and production environments deterministically.

What do I need to run WP-CLI scripts for WordPress operational tasks?

To run WP-CLI scripts for WordPress operational tasks, you need a valid WordPress root path and appropriate flags (--path, --url, or --network). You must establish backup strategies and follow guardrails outlined in the references before executing migrations or updates.

Why does my WordPress migration script need a dry-run capability?

Your WordPress migration script needs dry-run capability to safely preview search-replace operations before committing database changes. This deterministic approach prevents accidental data corruption during URL updates and ensures auditable workflows across staging and production environments.

Can I manage WordPress plugins and cron jobs together using command line scripting?

Yes, you can manage WordPress plugins and cron jobs together using command line scripting via WP-CLI. It handles plugin activation, theme management, and cron event scheduling in deterministic workflows, streamlining maintenance across single-site and multisite environments.