count all posts
This command searches for all posts in the database and returns the count number.
wp post list --format=count
copy
This command searches for all posts in the database and returns the count number.
wp post list --format=count
copy