Can I use wp-cli to create posts with a custom post types?

It should probably be

wp post create --post_title="test" --post_status="draft" --post_type="class_notes"

(note the two -- that mark it as a command option)

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