All skills
automattic avatar

/wp-wpcli-and-ops

@95e374f official
by automatticautomattic/agent-skills211 stars
37

Use when working with WP-CLI (wp) for WordPress operations: safe search-replace, db export/import, plugin/theme/user/content management, cron, cache flushing, multisite, and scripting/automation with wp-cli.yml.

Use this Skill: https://skilld.dev/gh/automattic/agent-skills/wp-wpcli-and-ops

This session only. Nothing lands on disk.

referencespackages-and-updates.md

≈133 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Plugin/theme operations

Use this file for installs, activation, updates, and listing state.

Common commands

  • Plugins:
    • wp plugin list
    • wp plugin status <slug>
    • wp plugin activate <slug>
    • wp plugin deactivate <slug>
    • wp plugin update --all
  • Themes:
    • wp theme list
    • wp theme activate <slug>
    • wp theme update --all

Guardrails

  • On production, avoid update --all without a maintenance window.
  • On multisite, plugin activation may be per-site or network-wide; confirm intent.

Source: SKILL.md on GitHub

1 warning17d4 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    This skill provides standard WordPress operational tools and safety guidelines for using WP-CLI. It includes an inspection script to verify environment state and comprehensive documentation on safe procedures for database management, migrations, and site maintenance. The skill follows security best practices by emphasizing backups, dry runs, and environment confirmation before performing destructive actions.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    9/9 files flagged

Signed by skilld at 95e374f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 months ago.

Dormantupdated 9 months ago
Other metadata
compatibility
Targets WordPress 6.9+ (PHP 7.2.24+). Requires WP-CLI in the execution environment.
  • Database
  • DevOps
  • wordpress
  • wp-cli
  • search-replace
  • multisite
  • plugins
  • themes
  • automation
  • migrations

README badge

README badge for automattic/agent-skills/wp-wpcli-and-ops

Runs WordPress operations via WP-CLI: safe search-replace for domain migrations, database export/import, plugin/theme management, cron inspection, cache flushing, and multisite operations. Targets WordPress 6.9+ and requires WP-CLI available in the execution environment; includes guardrails to confirm environment and targeting before destructive commands.

Generated from the current SKILL.md.

What WordPress versions does this skill support?
WordPress 6.9+ with PHP 7.2.24+. WP-CLI must be available in the execution environment.
Does this skill work with multisite installations?
Yes. The skill includes multisite-specific workflows using --url for single-site operations and --network for network-wide commands.
Can I use this skill for destructive operations like search-replace or database resets?
Yes, but the skill requires confirming environment (dev/staging/prod), targeting (path/url), and making backups before running write operations. It includes a --dry-run workflow to review impact first.
What if WP-CLI is not installed in my environment?
The skill provides an inspector script to check availability. If WP-CLI is missing, you will need to install it via Composer, container, or system package before the skill can run.
Can I automate WordPress operations with this skill?
Yes. The skill supports wp-cli.yml configuration files and shell scripts for repeatable operations, including CI job patterns.

Generated from the current SKILL.md. These answers refresh after source changes.