If you type wp help post create
you will get all the info you need.
Example:
wp post create --post_type=page --post_status=publish --post_title="A new page"
Related Posts:
- wp-cli displays php notices when display errors off
- Generate WP-CLI @alias for each site on multisite
- How do I set and list page_template with wpcli?
- How do I pass an array as an argument to a WP-CLI command?
- How to disable XML-RPC from Linux command-line in a total way?
- Find WordPress root directory in bash without WP-CLI
- How to change a post attribute to homepage using WP CLI?
- Shortest way to install WP-CLI
- WP Cli will not execute on Windows
- Error updating WP-CLI
- How to retrieve text only from a post using WP CLI?
- wp search-replace (not executing)
- Running custom defined WP-CLI commands without WordPress installation present
- How can I list all installed plugins/themes/versions from CLI/API?
- wp-cli for Creating page-template
- Bulk update published posts date randomly using wp-cli?
- Using the WP CLI to output the HTML results of calling a post?
- bash script wp-cli search-replace 0 replacements, but command-line 3000+
- Trigger function without awaiting response?
- Why can’t the WP-CLI installer find my php.ini?
- How to pretty print XML from the command line?
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- How do I copy a folder from remote to local using scp?
- What does cmd /C mean?
- Why do JVM arguments start with “-D”?
- Command Prompt “Net View System Error 6118”
- Windows 7 Symbolic Link – Cannot create a file when that file already exists
- How do I make a python script executable?
- What is cp: cannot stat error in Unix, I get this error when trying to copy thing from one folder to another
- Run C++ in command prompt – Windows
- Run R script from command line
- How to edit a py file from terminal?
- How to count lines in a document?
- How to easily print ascii-art text?
- What is %0|%0 and how does it work?
- npm install multiple package names
- Install oAuth PECL error: Cannot install, php_dir for channel “pecl.php.net” is not writeable by the current user
- Timeout a command in bash without unnecessary delay
- WP CLI “Error establishing a database connection” in localhost (MAMP)
- Determining WordPress’ Version from the Host’s Command Line?
- Is there a drush equivalent for WordPress yet?
- Running WordPress on the Command Line – Turn off Delayed Output?
- How do I run a PHP script from WordPress environment, like `wp shell`?
- Using wp-cli can I not query pages by their title?
- How can I batch delete all unattached images with WP-CLI or other automated process?
- How To Export/Import WordPress (MySQL) Database Properly Via Command-Line?
- WordPress test environment on windows
- How to use wp-cli.yml file?
- Enable Auto-updates for all plugins using wp-cli? (since wordpress 5.5)
- wp-cli doesn’t find and wordpress installation
- WP-CLI Bulk delete posts from specific category
- WP CLI info showing correct PHP binary but wrong version of PHP
- How do I setup a WordPress site on a server before the domain is ready?
- “Could not open input file” error even when WP-CLI is in the path
- Listing posts with wp-cli
- WP-CLI over SSH – wp command not found
- PHP warning are displaying when using WP CLI [closed]
- How can I replace all regex matches using the WP_CLI search-replace tool
- Do you have to have command line access to use Subversion with WordPress?
- wp-cli: run post generate and post meta add together
- Setting Up PHPUnit tests for WP development on Windows
- Setting boolean and array values using wp theme mod set
- Get WP CLI to hide debug warnings and notices in JSON output, same setting as website
- WP-CLI can’t list posts
- How can I get the WP-CLI eval-file command to report errors to stderr?
- wp-cli: wp term generate xxxxx – Error: ‘xxxxx’ is not a registered taxonomy
- WP CLI Shell not working on Windows
- How to specify to wp-cli for the `wp config create` (`wp core config`) command that the DB user is an ‘all hosts’ user?
- Automate dir and DB stack creation with WP-CLI
- Removing a wordpress multisite installation and preserving the database before migrate to nginx
- wp-cli: For development, how can I activate a theme that is on the local disk but not zipped?
- Reset generated wp-config.php with wp-cli
- Skip WooCommerce 4.5.x onboarding with WP-CLI [closed]
- How to delete 1000s of duplicated images in WordPress?
- Update a post based on results from GET request to another server
- WP-CLI search-replace posts content for certain URLs
- Bulk remove custom post type and its attachments with wp-cli?
- Other than WP-CLI, is there a way to install WordPress via the command-line?
- Wrong output order when mixing WP_CLI::API and php-cli-tools
- WP-CLI not working from Bash script
- Update the permalink for one post via wp cli
- Using WP-CLI, how do I delete a post by title or slug, not ID?
- Using wp-cli and delete everypost first image
- PHPUnit via WP-CLI: Warning: Cannot modify header information … bootstrap.php:68
- PHP Parse error on WP-CLI, not on web server
- Trying to install/configure wp-cli for WordPress
- wp-cli + valet: “Error establishing a database connection”
- Logs for WP CLI
- Remove files unrelated to WordPress from uploads
- How to remove all plugins, posts, pages, and inactive themes in one line with wp-cli? WordPress bloatware removal
- wp-cli core install –skip-email and –skip-config flags not working on MAMP unknown parameter
- How come there is no error if I upgrade WordPress core after locking .htaccess permissions to 644?
- How to destroy all user sessions via WP-CLI
- WPCLI search and replace in a particlar site dir effect another site-dir
- Is it possible to use WP CLI to update a theme that is not in the WordPress Repo?
- Can I use WP-CLI from a remote computer?
- Bulk delete media by year
- wp-cli output ‘column display format’ / wrapping
- When might you need to specify the “url” argument/option in WP-CLI?
- ‘wp’ is not recognized as an internal or external command, operable program or batch file