(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:
- pages are posts.
- There’s no “wp page list” command.
- 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.
Related Posts:
- How to reset passwords for all users on a network using wp cli
- WP-CLI methods for get_current_blog_id, get_blog_details or $wpdb->prefix
- wp-cli is not working properly. No response from commands
- Generate WP-CLI @alias for each site on multisite
- Using WP CLI to set options in WP Multisite
- Can wp-cli display all users and their roles across all sites in a multisite instance?
- How to run nested xargs commands?
- Removing a wordpress multisite installation and preserving the database before migrate to nginx
- How to create a network using a command line script?
- WP-CLI cron on multisite using WP-Toolkit “succeded”, but callback not executed
- Error: reassigning content to a different user is not supported on multisite
- Migrating Multisite with WP-Cli and/or Search-Replace-DB
- Create WordPress Multisite Instance Programmatically
- WP-Cli Error When Mapping Multisite Subdomain
- wp option get blogname –url=my-sub-site.com returning main site option
- WP-CLI Error Requesting CURL Extension
- wp cli search and replace on –network Error reconnecting to the database
- wp-cli core install –skip-email and –skip-config flags not working on MAMP unknown parameter
- multisite: use a virtual subfolder for subblogs
- WP Multisite – multilanguage – swich to other language by click, but “same” content
- How to disable Multisite sign-up page?
- How To Provide Sub-Blogs Their Own Domain Names?
- “You need a higher level of permission” after admin changing. Why?
- Advanced Custom Fields Multisite Upload/Imagery Issue [closed]
- Prevent user creating new users with specific roles
- What is the correct form action URL for network options pages?
- BuddyPress on Multisite [closed]
- Migrating WPMS from apache to IIS7 causes Database Error
- Add menu page on multisite
- How to Move Local Singlesite Database to Remote Multsite Database?
- Get the Current Blog URL of User in Multi Site?
- Localized WordPress content for different sub-locales of same language?
- Change the “main site” on a wordpress multisite installation
- Multisite plugin hiding on specific blogs
- Multisite Pull Recent Image Attachments from Blog ID
- The requested URL /login was not found on this server
- “Organize my uploads into month- and year-based folder” Option Not Visible in Multisite
- Multisite install – Create each domain with its own directory
- Configuring multi-site with domain mapping
- Multisite theme control not working
- Copy Root Multisite Site
- WP Multisite with Domain Mapping : Preventing User Access to Dashboard
- Possible to enqueue scripts and CSS to Multisite Network dashboard?
- Where does multisite store image uploads?
- Howto disable comment moderation emails for admins, but not for authors
- WordPress Multisite – can I somehow merge the tables?
- Clone single site into a multisite setup
- Change Administrator to Super Administrator (multi-site)
- Migrating MultiSite to SSL: Media Library not updating
- Automatically login user across multisite
- Removing Mutlisite lines stop DB connection
- Renaming admin user on multisite install by MySQL
- Assign default widgets to all sites in a multisite network
- How to split existing blog into WordPress Multisites without breaking links?
- How to move a WordPress multisite?
- get_option( ‘home’ ) not returning value in database
- I want to create a 300 multi-site wordpress network using subdomains
- Missing images after moving servers
- Create “/blog” sub-site on WP multisite network
- Share contents/posts between sites in a WordPress 5.6
- Wait ajax to complete before continue loop
- Multi-vendor with custom shop site for each vendor
- You need to login with a user that has edit posts capacity?
- Multisite default theme and child applied to network
- Change WordPress Multisite Domain
- WPMU add custom colum
- Remove W3 Total Cache minified files on custom page outside of WordPress [closed]
- Pros and Cons of Post Types vs. Multiple Blogs
- How to automate setup of theme, pages, widgets, etc for a new site in multi-site?
- Restrict users of site 1 to login in site 2 in wordpress multisite
- “My Sites” incorrectly showing all network sites for all logged in users
- Unable to execute Ajax request, status code 400
- Merge posts of more than one site by using one database with the WordPress network
- A database for each category?
- Redirect a WordPress Multisite url after it has been change to a new one
- Structure of multilingual and multiregional directory listing website for translation
- multisite 404 subfolder same name slug as site
- How to make the redirects right? IP to domain name folders
- What is the optimal solution: WP Multisite vs InfiniteWP
- Best way to have multiple custom domains associated with a site within a multisite installation
- Subdomain multisite instances having same content
- Multisite issue
- How to Add Super Admin for WordPress multi-site
- WordPress single sign on using cookies with shared user role functionality between more than 2 wordpress subdomains
- Can’t access 2nd site (sub) dashboard of WordPress Multisite
- How do I point two urls to the same child site in a multisite config
- what if one user in WPMU change the theme files?
- WordPress and SQL – Update and Insert from another table if column value doesn’t exist
- Network – My sites are unavailable
- White pages on sub domains after server transfer
- No input file specified after enabling multi site
- How do I enable Multisite on WP 3.7.1?
- Registration Page
- Can admins on network install view and edit users accounts?
- Unsure of my options, Multi-blog?
- WordPress Multisite with HTML template as Root
- WordPress Multisite (Network) some site users added to main site users list as subscriber
- Moving a WordPress Multisite site to a new install
- get_category_link() or get_tag_link() return wrong category/tag base in wordpress multisite
- Multisite subdomain microsite on secondary domain