Skip to main content
Cookbook Admin

Run WP-CLI safely

Use WP-CLI-style commands for WordPress admin work with review checkpoints.

Difficulty Intermediate
Time ~10 min
Tools run_wp_cli

Prerequisites

The Vibe AI plugin installed on the connected site.

The prompt
Use WPVibe WP-CLI tools to help with this admin task: [task].

Start with read-only commands to inspect the current state. If a write command is needed, explain what it will change and use dry-run or confirmation when available. Do not run destructive commands until I approve the exact command.

This recipe is useful for plugin lists, option checks, rewrite rules, cache flushes, post lists, and search-replace dry runs.

WPVibe runs supported WP-CLI-style operations through WordPress/PHP APIs rather than relying on a host-level shell.

Outcome

The AI gathers state first, then uses WP-CLI-style commands with explicit review before writes.