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
- Overwrite posts/pages via import
- Auto-realod with new posts // Ajax call
- How many posts does the loop return?
- Posts loop displaying the same post data
- Display Posts on Custom Page
- Possible to alternate between two loops
- How to get a post’s content? [closed]
- Blog Post On Home Page Displaying Page Published Date Not Post Published Date
- Why does a published post only displays the title and not the content in the site? [closed]
- Counter is skipping post when I still want it visible [closed]
- Divs appearing everywhere in post content
- Latest posts by category — how to exclude current post?
- Change post author without using wp_update_post()
- Posts page not showing correct image
- wp_query with ajax
- Post Title List on home page with time
- Add “Posted on” to post date
- Get x recent posts by author?
- How to compare post tags?
- Adding JS functionality to the Publish button in wp-admin/post.php
- Get a term each custom post type
- Remove Featured Image from posts in specific category?
- Adjust the order for returned posts
- Post in bulk based on category template
- Delete Post but retain image of post [WP REST API]
- user_has_cap filter allows “edit_others_posts” but not is not allowing updating/publishing
- how to add tags to post in the Loop?
- Add data attribute of post_id for Internal links
- Menu Items disappearing/being empty on save or post edit
- Single Post function to display all single post images in a carousel
- Display/Filter post using if else statement
- Search results for ACF data
- Nestling Posts Under Page & Justify Text
- Redirect to custom post if custom archive page has just one result?
- Strange behaviour in WordPress admin
- How do you update post date (year only) in a separate custom field?
- sometimes on saving a post as draft, it says Access Denied You don’t have permission to access “mywebsite.com/wp-admin/post.php”
- How do I change the post title’s link on the posts page?
- WordPress text field in array problem
- Get query result according to merged array
- Embed image in post from external url
- Custom URL Structure for posts with subcategories
- Possible to display X number of authors posts from another WordPress site?
- Theme Unit testing not importing on MAMP server – Fatal error: Maximum execution time of 60 seconds exceeded
- Post/Edit/Delete Post From Frontend… How?
- Get post title by Alphabet
- Use radio buttons & checkboxes for post categories
- List posts that are in the same category as the current post title
- Wanting to apply different featured images for each post
- How do I show the post title if an advanced custom field hasn’t been used?
- Deleting first four characters from all Post Titles
- Can I get custom post items in select box (dropdown)
- Custom Post-Rename Function Does Not Function in WordPress 6.x