1. Home
  2. Wp-cli
  3. List all pages

This command is based on the "wp post list" used to return all posts but the "--post_type=page" flag changes the search scope to return only pages. By default the output if formatted as a table and includes page ID, title, slug, creation date, and the status.

#wordpress#cli
wp post list --post_type=page
copy
Full Wp-cli cheatsheet