Cookbook › WP-CLI
Manage categories with WP-CLI
Paste into ChatGPT or ClaudeUse WP-CLI to create a category called “Guides”, read it back, then give it the description “How-tos and longer reads.”
Changes your site. Standard asks you first in wp-admin; Trusted does it directly.
What happens
Section titled “What happens”- Your assistant runs
wp term create categoryandwp term get. - It updates the description with
wp term update.
Try also
Section titled “Try also”- “Use WP-CLI to list tags with no posts.”
Good to know
Section titled “Good to know”- At Standard, creating or changing categories waits for your yes.