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
- List posts
- Read a site option
- Change a site option
- Fix permalinks
- Clear the object cache
- Delete transients
All content and options commands · WordPress WP-CLI 2 cheatsheet