Cookbook › WP-CLI
Work on drafts with WP-CLI
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.
What happens
Section titled “What happens”- Your assistant runs
wp post list,wp post createandwp post getthrough AI Puffer. - It edits the excerpt with
wp post update, using the version it just read. - New posts are always drafts; publishing is a separate step.
Try also
Section titled “Try also”- “Use WP-CLI to show the ID and status of every page.”
Good to know
Section titled “Good to know”- No SSH or server login: AI Puffer carries out the commands with its own website tools.