Skip to content

Cookbook › WP-CLI

Work on drafts with WP-CLI

WP-CLI2 minutesChangesTested 15 Oct 2026
Paste into ChatGPT or ClaudeUse WP-CLI to list my five newest drafts. Create a new draft called “Spring notes”, read it back, then change only its excerpt to “Prices for spring, in one page.” Keep it a draft.

Changes your site. Standard asks you first in wp-admin; Trusted does it directly.

  1. Your assistant runs wp post list, wp post create and wp post get through AI Puffer.
  2. It edits the excerpt with wp post update, using the version it just read.
  3. New posts are always drafts; publishing is a separate step.
  • “Use WP-CLI to show the ID and status of every page.”
  • No SSH or server login: AI Puffer carries out the commands with its own website tools.