mirror of
https://gh.wpcy.net/https://github.com/wp-cli/handbook.git
synced 2026-05-02 11:00:08 +08:00
19 lines
381 B
Markdown
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.
|
|
|
|
|