How to use command ‘wp post create’ in wp-cli properly?

If you type wp help post create you will get all the info you need.

Example:

wp post create --post_type=page --post_status=publish --post_title="A new page"

Leave a Comment