Unlock Hidden Powers: Transform Your WordPress Workflow with WP-CLI Today!
wp post list

To see a list of pages, add this flag to the command:
wp post list --post_type=page
You can see a list of posts and pages using this command:
wp post list --post_type=page, post
The wp post list page of the WordPress Developer Handbook provides more information about retrieving lists of posts.
wp post create
As you might expect, the wp post create command lets you create posts and pages with WP-CLI.
If you regularly set up new sites that include the same set of pages, such as about, contact, and services pages, you can quickly create those pages using a single command.
								


                                    
                                    
                                    
                                    
                                    
                                    
                                    
                                    
                                    
Post Comment