wp post

Manages posts, content, and meta.

EXAMPLES

# Create a new post.
$ wp post create --post_type=post --post_title='A sample post'
Success: Created post 123.

# Update an existing post.
$ wp post update 123 --post_status=draft
Success: Updated post 123.

# Delete an existing post.
$ wp post delete 123
Success: Trashed post 123.

SUBCOMMANDS

Name Description
wp post get Gets details about a post.
wp post meta Adds, updates, deletes, and lists post custom fields.
wp post list Gets a list of posts.
wp post generate Generates some posts.
wp post create Creates a new post.
wp post exists Verifies whether a post exists.
wp post delete Deletes an existing post.
wp post update Updates one or more existing posts.
wp post edit Launches system editor to edit post content.
wp post term Adds, updates, removes, and lists post terms.