WP-CLI can’t list posts

(I’ll post here @photocurio’s answer, as it’s hidden in the comments)

wp post list --post_type=page      # will show only post-type=page
wp post list                       # will show only post-type=post

It’s counter-intuitive command is also mis-documented, (which I hope to change), because:

  1. pages are posts.
  2. There’s no “wp page list” command.
  3. The docs don’t mention that the list is filtered by default

I’d naturally expect that a query will be inclusive by default, so I was surprised not to find a page list in wp-cli’s docs.