wp post <command>

Manages posts, content, and meta.

EXAMPLES 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.

Top ↑

SUBCOMMANDS SUBCOMMANDS

Name Description
wp post create

Create a new post.

wp post delete

Delete an existing post.

wp post edit

Launch system editor to edit post content.

wp post generate

Generate some posts.

wp post get

Get details about a post.

wp post list

Get a list of posts.

wp post meta

Manage post custom fields.

wp post term

Manage post terms.

wp post update

Update one or more existing posts.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.