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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)