Using WP CLI how can I rename default category (Uncategorized) to Blog when starting a new project?

Following documentation this should be correct?

wp term update category 1 --name="Blog"

But I get error

Term doesn't exist

This is how wp_terms table looks like

enter image description here


If I first create a category Blog with wp term create category Blog, how would I set this new category as default? After that I could try deleting the first category Uncategorized with wp term delete

1 Answer 1


Try removing the quotes around the new name. The docs show it as:

wp term update category 1 --name=Blog


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.