Get last published post in WordPress using wp-cli

Simply add:

--posts_per_page=1

to limit the queried items to a single item.

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