---
title: "Run WordPress site operations safely with WP-CLI targeting and rollback guardrails"
description: "Uses the WordPress wp-wpcli-and-ops skill to guide an agent through environment-aware WP-CLI work like search-replace, plugin or theme operations, cron inspection, and multisite-safe targeting. It is an operational runbook for guarded WordPress changes, not a plain entry for the WP-CLI product."
verification: "security_reviewed"
source: "https://github.com/WordPress/agent-skills/tree/trunk/skills/wp-wpcli-and-ops"
author: "WordPress"
publisher_type: "Open Source Project"
category:
  - "WordPress & CMS"
framework:
  - "Multi-Framework"
---

# Run WordPress site operations safely with WP-CLI targeting and rollback guardrails

Uses the WordPress wp-wpcli-and-ops skill to guide an agent through environment-aware WP-CLI work like search-replace, plugin or theme operations, cron inspection, and multisite-safe targeting. It is an operational runbook for guarded WordPress changes, not a plain entry for the WP-CLI product.

## Prerequisites

WP-CLI plus access to the target WordPress environment

## Installation

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
Use the wp-wpcli-and-ops skill from the WordPress/agent-skills repository where WP-CLI is available.
```

## Documentation

- https://github.com/WordPress/agent-skills/tree/trunk/skills/wp-wpcli-and-ops

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/run-wordpress-site-operations-safely-with-wp-cli-targeting-and-rollback-guardrails/)
