wp-wpcli-and-ops

Perform safe WordPress operations via WP-CLI with path and URL scoping.

Updated Sep 22, 2024
One-click install
npx skills add https://github.com/WordPressBugBounty/plugins-woocommerce-for-japan --skill wp-wpcli-and-ops-wordpressbugbounty
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wp-wpcli-and-ops
Source: https://github.com/WordPressBugBounty/plugins-woocommerce-for-japan/tree/main/woocommerce-for-japan/.claude/skills/wp-wpcli-and-ops
Command: npx skills add https://github.com/WordPressBugBounty/plugins-woocommerce-for-japan --skill wp-wpcli-and-ops-wordpressbugbounty

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

It prevents mistakes and downtime by guiding safe, repeatable WordPress operational tasks through WP-CLI, including migrations, maintenance actions, and multisite-aware changes.

Core Features & Use Cases

  • Safe search-replace and URL/domain migrations: Use wp search-replace with dry-run and verification steps to reduce risk during http/https or domain changes.
  • Deterministic operational workflows: Export/import and inspect data, manage plugins/themes/users, and control cron behavior using targeted WP-CLI commands.
  • Multisite-aware targeting and automation: Use --url and network-wide operations intentionally, and build repeatable routines using wp-cli.yml and scripts.
  • Verification and debugging guidance: Re-check WP-CLI availability and site targeting after changes, and troubleshoot common issues like wrong --path or missing wp-config.php.

Quick Start

Run the inspector to verify WP-CLI availability and correct targeting: node skills/wp-wpcli-and-ops/scripts/wpcli_inspect.mjs --path=<wordpress-root> --url=<site-url>.

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 for a domain migration?

Safe WordPress search-replace requires using WP-CLI with dry-run and verification steps to reduce risk during http/https or domain changes. Run the operation with proper path and URL scoping to ensure correct targeting.

What's the best way to manage WordPress cron and cache maintenance via command line?

WordPress cron and cache maintenance is best handled through targeted WP-CLI commands for deterministic operational workflows. Control cron behavior and flush cache using specific path and URL scoping.

Can I execute multisite-aware operations across a WordPress network using WP-CLI?

Multisite-aware operations are fully supported using WP-CLI by applying the --url flag and network-wide operations intentionally. This ensures correct targeting and controlled blast radius across network sites.

Does WordPress ops automation work in staging and production environments?

WordPress ops automation works across local dev, staging, and production environments using WP-CLI. It requires a valid WP-CLI runtime with appropriate access and path/url scoping to maintain controlled blast radius.

Why does my WP-CLI command fail to target the correct WordPress site?

WP-CLI targeting fails when the --path is wrong or wp-config.php is missing. Re-check WP-CLI availability and site targeting after changes by running the provided wpcli_inspect script for verification.

Do I need a specific runtime to automate WordPress plugin and theme management?

Automating WordPress plugin and theme management requires a valid WP-CLI runtime with appropriate access. Build repeatable routines using wp-cli.yml and scripts to ensure deterministic operational workflows.