wp-wpcli-and-ops

Orchestrate WP-CLI commands for WordPress administration and maintenance tasks.

Updated Jan 13, 2026
One-click install
npx skills add https://github.com/MrGKanev/agent-skills --skill wp-wpcli-and-ops-mrgkanev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wp-wpcli-and-ops
Source: https://github.com/MrGKanev/agent-skills/tree/main/skills/wp-wpcli-and-ops
Command: npx skills add https://github.com/MrGKanev/agent-skills --skill wp-wpcli-and-ops-mrgkanev

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill streamlines WordPress operational tasks by automating WP-CLI workflows, reducing manual commands and human error.

Core Features & Use Cases

  • Safe WP-CLI inspections and environment checks to confirm correct targeting and readiness.
  • Standardized workflows for common admin tasks: search-replace, plugin/theme management, multisite operations, cron, and cache handling.
  • Automation scaffolding with wp-cli.yml and shell scripts to enable repeatable deployments and maintenance routines.

Quick Start

Run the inspector to validate your environment: node skills/wp-wpcli-and-ops/scripts/wpcli_inspect.mjs --path=<wordpress-root> --url=<site-url> --allow-root

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 maintenance tasks using WP-CLI?

Automate WordPress maintenance with WP-CLI by orchestrating shell scripts and a wp-cli.yml file to standardize workflows like search-replace, plugin management, and cache clearing. This reduces manual commands and human error.

What is the best way to safely run WP-CLI commands in production?

Safely run WP-CLI commands in production by executing an inspector script to validate environment targeting and readiness. This ensures a controlled execution context before performing operational tasks.

Can I manage multisite WordPress networks with WP-CLI automation?

You can manage multisite WordPress networks with WP-CLI automation through standardized workflows that handle site targeting and multisite operations. This enables reliable administration across local, staging, and production environments.

Do I need a wp-cli.yml file to automate WordPress operations?

A wp-cli.yml file is optional but recommended to provide default configurations for automating WordPress operations. It scaffolds repeatable deployments and maintenance routines alongside shell scripts.

How do I perform a database search-replace safely in WordPress?

Perform a safe database search-replace in WordPress by using standardized WP-CLI workflows within a controlled execution context. This ensures correct site targeting and prevents accidental data corruption.