wp-wpcli-and-ops

Manage WordPress operations with WP-CLI for search-replace, databases, and multisite.

27|1|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/dr-robert-li/cowork-wordpress-expert --skill wp-wpcli-and-ops-dr-robert-li
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wp-wpcli-and-ops
Source: https://github.com/dr-robert-li/cowork-wordpress-expert/tree/main/references/wp-wpcli-and-ops
Command: npx skills add https://github.com/dr-robert-li/cowork-wordpress-expert --skill wp-wpcli-and-ops-dr-robert-li

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines complex WordPress operational tasks, ensuring safe and efficient management of your sites through the powerful WP-CLI tool.

Core Features & Use Cases

  • Safe Search-Replace: Perform database URL and domain migrations without data corruption.
  • Database Management: Export, import, and inspect your WordPress database.
  • Package & User Management: Install, activate, and manage plugins, themes, and users.
  • Site Operations: Flush caches, manage cron jobs, and handle multisite configurations.
  • Automation: Build repeatable scripts and CI jobs using wp-cli.yml.
  • Use Case: Migrate a WordPress site from one domain to another by safely updating all URLs in the database using wp search-replace.

Quick Start

Use the wp-wpcli-and-ops skill to inspect the WP-CLI installation at the path '/var/www/html'.

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 safely run a WordPress search-replace to migrate domains without corrupting the database?

To safely migrate domains, perform a WordPress search-replace using WP-CLI. This updates all URLs in the database directly, preventing data corruption during domain migrations by safely handling serialized arrays.

What is the best way to automate WordPress operations and multisite configurations?

The best way to automate WordPress operations is by building repeatable shell scripts and CI jobs using a wp-cli.yml file. WP-CLI supports managing multisite configurations and site operations through automated commands.

Can I manage WordPress database exports and plugin installations using WP-CLI?

Yes, you can manage WordPress database operations and package management using WP-CLI. It supports exporting, importing, and inspecting databases, alongside installing, activating, and managing plugins and themes.

Do I need a specific environment to execute WP-CLI commands for WordPress site operations?

Yes, you need WP-CLI installed in your execution environment to run WordPress operations. You must also provide specific site targeting parameters, such as the path '/var/www/html', to execute commands correctly.

How does WP-CLI handle WordPress site operations like flushing caches and managing cron jobs?

WP-CLI handles WordPress site operations by executing direct commands to flush caches and manage cron jobs. It streamlines complex site management tasks safely and efficiently through the command line interface.