superpowers-sage:wp-cli-ops

Run WP-CLI operations inside a Lando container for WordPress maintenance.

13|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/hekivo/superpowers-sage --skill superpowers-sage-wp-cli-ops-hekivo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: superpowers-sage:wp-cli-ops
Source: https://github.com/hekivo/superpowers-sage/tree/main/skills/wp-cli-ops
Command: npx skills add https://github.com/hekivo/superpowers-sage --skill superpowers-sage-wp-cli-ops-hekivo

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you perform risky WordPress command-line operations reliably by running WP-CLI through Lando with clear safety guardrails, backups, and dry-run workflows.

Core Features & Use Cases

  • Database lifecycle operations: Export backups, import SQL, and run serialization-safe search-replace workflows.
  • Content and admin task automation: Create users, list posts, and update options (including serialized options via JSON).
  • Operational maintenance & deploy steps: Toggle maintenance mode, flush caches, delete transients, flush rewrites, and run cron events with verification checklists.

Quick Start

Ask the skill to run a serialization-safe URL migration by first performing a dry-run and then applying the changes only after you confirm the output.

Frequently Asked Questions about superpowers-sage:wp-cli-ops

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a safe WP-CLI search-replace for a domain migration in Lando?

Run a serialization-safe WP-CLI search-replace in Lando by first executing a dry-run to preview changes, creating a database backup, and then applying the replacement after verifying the output.

Can I use WP-CLI to toggle maintenance mode and flush caches during a WordPress deployment?

Yes, you can use WP-CLI to toggle maintenance mode, flush caches, delete transients, flush rewrites, and run cron events with verification checklists during WordPress deployment workflows.

Does this WP-CLI workflow require a specific local development environment?

Yes, this workflow requires a Lando container to execute `lando wp` commands for WordPress database operations, user administration, and maintenance tasks safely.

What is the best way to update serialized WordPress options via WP-CLI?

Update serialized WordPress options by passing JSON formatted values to the WP-CLI command, ensuring data structure integrity when modifying configuration settings within the database.

Why should I perform a database backup before running destructive WP-CLI operations?

Performing a database backup before destructive WP-CLI operations provides a recovery point in case search-replace, import, or bulk update tasks negatively impact your WordPress data.