handbook/commands/post.md
2017-10-17 06:46:41 -07:00

19 lines
381 B
Markdown

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