WordPress WP-CLI 2 · Content and options

Create a post

Create and publish a post.

wp post create --post_title="Hello" --post_status=publish

Official WordPress WP-CLI 2 documentation

More content and options commands

All content and options commands · WordPress WP-CLI 2 cheatsheet

Was this page helpful?