wp-wpcli-and-ops

द्वारा wordpress

वर्डप्रेस संचालन और WP-CLI के माध्यम से स्वचालन, जिसमें सुरक्षित खोज-बदलाव, डेटाबेस प्रबंधन और मल्टीसाइट समर्थन शामिल है। डोमेन माइग्रेशन के लिए खोज-बदलाव, डेटाबेस निर्यात/आयात, प्लगइन/थीम/उपयोगकर्ता प्रबंधन, क्रॉन निरीक्षण और कैश फ्लशिंग को कवर करता है। इसमें अंतर्निहित सुरक्षा उपाय शामिल हैं: पर्यावरण पुष्टि, ड्राई-रन सत्यापन और विनाशकारी संचालन से पहले बैकअप व

npx skills add https://github.com/wordpress/agent-skills --skill wp-wpcli-and-ops

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>
  • Whether this is multisite and whether commands should run network-wide.
  • Any constraints (no downtime, no DB writes, maintenance window).

Procedure

0) Guardrails: confirm environment and blast radius

WP-CLI commands can be destructive. Before running anything that writes:

  1. Confirm environment (dev/staging/prod).
  2. Confirm targeting (path/url) so you don’t hit the wrong site.
  3. Make a backup when performing risky operations.

Read:

  • references/safety.md

1) Inspect WP-CLI and site targeting (deterministic)

Run the inspector:

  • node skills/wp-wpcli-and-ops/scripts/wpcli_inspect.mjs --path=<path> [--url=<url>]

If WP-CLI isn’t available, fall back to installing it via the project’s documented tooling (Composer, container, or system package), or ask for the expected execution environment.

2) Choose the right workflow

A) Safe URL/domain migration (search-replace)

Follow a safe sequence:

  1. wp db export (backup)
  2. wp search-replace --dry-run (review impact)
  3. Run the real replace with appropriate flags
  4. Flush caches/rewrite if needed

Read:

  • references/search-replace.md

B) Plugin/theme operations

Use wp plugin * / wp theme * and confirm you’re acting on the intended site (and network) first.

Read:

  • references/packages-and-updates.md

C) Cron and queues

Inspect cron state and run individual events for debugging rather than “run everything blindly”.

Read:

  • references/cron-and-cache.md

D) Multisite operations

Multisite changes can affect many sites. Always decide whether you’re operating:

  • on a single site (--url=), or
  • network-wide (--network / iterating sites)

Read:

  • references/multisite.md

3) Automation patterns (scripts + wp-cli.yml)

For repeatable ops, prefer:

  • wp-cli.yml for defaults (path/url, PHP memory limits)
  • shell scripts that log commands and stop on error
  • CI jobs that run read-only checks by default

Read:

  • references/automation.md

Verification

  • Re-run wpcli_inspect after changes that could affect targeting or config.
  • Confirm intended side effects:
    • correct URLs updated
    • plugins/themes in expected state
    • cron/caches flushed where needed
  • If there’s a health check endpoint or smoke test suite, run it after ops changes.

Failure modes / debugging

  • “Error: This does not seem to be a WordPress installation.”
    • wrong --path, wrong container, or missing wp-config.php
  • Multisite commands affecting the wrong site
    • missing --url or wrong URL
  • Search-replace causes unexpected serialization issues
    • wrong flags or changing serialized data unsafely

See:

  • references/debugging.md

Escalation

  • If you cannot confirm environment safety, do not run write operations.
  • If the repo uses containerized tooling (Docker/wp-env) but you can’t access it, ask for the intended command runner or CI job.

wordpress की और Skills

blueprint
wordpress
WordPress Playground ब्लूप्रिंट JSON फ़ाइलें बनाने, संपादित करने या समीक्षा करते समय उपयोग करें। ब्लूप्रिंट, प्लेग्राउंड कॉन्फ़िगरेशन या अनुरोधों के उल्लेख पर ट्रिगर होता है…
official
wordpress-router
wordpress
वर्डप्रेस कोडबेस को वर्गीकृत करें और प्लगइन्स, थीम्स, ब्लॉक्स और कोर चेकआउट के लिए सही वर्कफ़्लो पर रूट करें। रिपो प्रकार (प्लगइन, थीम, ब्लॉक थीम, गुटेनबर्ग ब्लॉक्स, WP कोर) और उपलब्ध टूलिंग की पहचान करने के लिए स्वचालित प्रोजेक्ट ट्राइएज चलाता है। उपयोगकर्ता के इरादे और प्रोजेक्ट प्रकार के आधार पर डोमेन-विशिष्ट कौशल के लिए वर्गीकरण परिणाम और निर्णय वृक्ष रूटिंग आउटप
official
wp-abilities-api
wordpress
We need to translate the given English text into Hindi. The text describes a WordPress Abilities API registration, REST exposure, and client-side consumption for WordPress 6.9+. It mentions functions like wp_register_ability() and wp_register_ability_category(), REST endpoints, and the @wordpress/abilities package. We must preserve product names, protocol names, URLs, numbers, technical terms. The name "wp-abilities-api" is not in the text, so we don't include it. We translate only the text inside <text>. No extra commentary. Let's translate sentence by sentence: "WordPress Abilities API registration, REST exposure, and client-side consumption for WordPress 6.9+." -> "WordPress Abilities API पंजीकरण, REST एक्सपोज़र, और WordPress 6.9+ के लिए क्लाइंट-साइड उपभोग।" "Register abilities and categories in PHP using wp_register_ability() and wp_register_ability_category() with stable IDs,
official
wp-abilities-audit
wordpress
किसी WordPress प्लगइन की REST सतह का ऑडिट करें और Abilities API पंजीकरण प्रस्तावित करने वाला एक मानकीकृत ऑडिट दस्तावेज़ तैयार करें। YAML के साथ एक markdown दस्तावेज़ तैयार करता है…
official
wp-abilities-verify
wordpress
किसी WordPress प्लगइन की Abilities API पंजीकरणों को सत्यापित करें: abilities की गणना करें, जाँचें कि callback व्यवहार प्रत्येक annotation के दावे से मेल खाता है (विरोधात्मक…
official
wp-block-development
wordpress
We need to translate the given English text into Hindi, preserving the name "wp-block-development" only if it appears in the source text. The source text does not contain that name; it's only in the instruction. So we translate the text inside <text>. The text is a description of a skill for WordPress block development. We must preserve product names (WordPress, Gutenberg), protocol names, URLs (none), numbers (3, 6.9+), technical terms (block.json, register_block_type_from_metadata(), apiVersion, iframe, etc.). No extra commentary, labels, or formatting. Translation: WordPress ब्लॉक विकास Gutenberg के लिए: मेटाडेटा, पंजीकरण, रेंडरिंग, और बिल्ड वर्कफ़्लो। इसमें ब्लॉक निर्माण, block.json कॉन्फ़िगरेशन, स्थिर बनाम गतिशील रेंडरिंग
official
wp-block-themes
wordpress
We need to translate the given English text into Hindi. The text describes a WordPress block theme development skill. We must preserve the name "wp-block-themes" but it's not in the text, so we ignore. We translate only the text inside <text>. No extra labels, no markdown, no bullets. Just the translation. Let me translate paragraph by paragraph: "WordPress block theme development: theme.json, templates, patterns, and Site Editor troubleshooting." -> "वर्डप्रेस ब्लॉक थीम विकास: theme.json, टेम्पलेट्स, पैटर्न और साइट एडिटर समस्या निवारण।" "Covers theme.json editing (presets, settings, per-block styles), templates and template parts, patterns, and style variations across WordPress 6.9+" -> "इसमें theme.json संपादन (प्रीसेट, सेटिंग्स, प्रति-ब्लॉक शैलियाँ), टेम्प
official
wp-interactivity-api
wordpress
वर्डप्रेस इंटरैक्टिविटी एपीआई सुविधाओं (data-wp-* निर्देश, @wordpress/interactivity स्टोर/स्टेट/एक्शन, ब्लॉक viewScriptModule…) के निर्माण या डिबगिंग के दौरान उपयोग करें।
official