You can try the --url
argument to target a given site in your network:
wp post create \
--post_type=page \
--post_title="ABC" \
--post_status=publish \
--url=http://example.tld/somesite/
where you can view available site urls with
wp site list
Related Posts:
- How to Display Network Post Count?
- WP-CLI Bulk delete posts from specific category
- How to cache a shortcode functions output?
- Querying post from a multisite network
- How to get a post content from another wordpress blog/site?
- how to enable different number of revisions for different blogs when using WPMU?
- Strange switch_to_blog() issue
- How to hook a function only when I need to delete permanently a post?
- How to share same post to multiple site in wordpress?
- Pull posts from another wordpress install on same server
- Query posts from different categories in multisite
- Multisite – Get current post id
- How to show last post of each website of a MU wordpress in HomePage
- How to display content from the main blog on another from multisite network as it would be its own
- wp-cli post create & media import issues
- Multisite: Can’t Post or Create Categories
- Unable to restore from backup – how to obtain old blog posts?
- Pagination with an array of post objects?
- WordPress Multisite – Create Default Post and New Category On New Site Install
- Set static page/post from another blog on same network
- How to WP_Query() from multiple blogs and order them?
- Is it possible to filter the main loop to exclude posts from a specific category?
- How do I show posts from another wordpress installation?
- Display password protected posts to logged in users
- Using wp-cli and delete everypost first image
- Removing all post tags except a given list
- Change Author Name to Sitename on Frontend
- Cannot select certain authors for posts after import
- why the posts queried from sql is more than those showed on the page?
- Prevent duplicate pages from being added
- Bulk update published posts date randomly using wp-cli?
- How to automate creating pages on a hosted wordpress from a local set of folders?
- unable to write to the database while uploading images
- Displaying all posts from other sites on the network on one site
- Multisite how to display merged posts from two sites and sort by latest date?
- Multisite Issue on Subdomain’s article pages
- Populate a drop down list with post titles across a multisite network
- How can I have the posts from one word press blog show on the presentation page of another word press site
- How to get posts from network blog
- Sorting Posts by Date – get_blogs_of_user_id()
- Users cannot post when editor or admin on more than 1 site on multisite
- How to link two news page multilingual press
- Get image paths from RSS feeds
- making a few sites in wordpress
- Do I need to create a multisite for querying posts from multiple WordPress sites?
- Site ‘Categories’: save an admin global setting with post metadata [closed]
- users followin the blog post author
- How do you add Read more … link to posts?
- Get current menu_order
- Setting Custom Sort Order of Posts within a Category
- Display post number not post ID number
- has_archive=false on the default post type
- How do I detach images from posts?
- Exclude drafts in all() view of edit.php
- Change slug with custom field
- adding a custom css class to post
- get_post_type_archive_link(‘post’) returns current category archive
- Adding variable for post title so post template can include auto-generated link to view on external website.com/{post title}
- Two posts are loaded instead of one?
- When I re-save a post with [code] sections, the entities are double-escaped (> becomes > etc)
- How can I write comments/hidden text in a post?
- Getting category posts from a certain year
- custom post scheduler for drafts
- Ajaxify This Code
- How do I display some posts fully on the homepage, and some as an excerpt only?
- How to bulk add vast amounts of posts
- 301 (static page instead latest posts)
- Saving custom fields to a custom taxonomy
- Show posts count for Categories and Tags in wp_nav_menu
- How to get subcategories from category slug?
- Conflict array_splice on loop and query in widget
- How come this loop is not working? [closed]
- Change default post style to columns
- Link from Post to Another Post Via Clicking on Words within Original Post
- What’s a theme that properly handles previews of different types of posts?
- Insert JavaScript in a blog post or a new page?
- A better code for no post format?
- Order buttons added to TinyMCE
- How to create a clickable latest posts list?
- Tag for custom post type
- how to put post customized in page
- How to display particular categorie’s post which associated to specific user?
- Post title spoiler how?
- how to print total number of posts filtered by category?
- How to display post excerpt beside post list inside Post of Dashboard
- Add a unique meta desciption
- Displaying a specific sub-category’s posts from wp_query
- Filter question list on substring of metavalue
- Get results from the main wp_query
- Comment Authors of Post On Front Page
- Make a custom URL and link to custom Template
- How to get all post titles starting with numbers and symbols?
- How to inject a post within a loop
- thumbnail image path and file path for gallery thumbnail images
- How to display a certain template element only for posts published within certain time range?
- List direct children of page
- How to set value in Query Loop?
- Wp_query WooCommerce products
- No matching template found when using single.php
- How to get post ID after removing that post?