Per the documentation on make.wordpress.com, you need to create a file called wp.bat
located in your C:\wp-cli
folder, with the following contents:
@ECHO OFF
php "c:/wp-cli/wp-cli.phar" %*
Once you have this set up, you should be able to use wp
to execute WP-CLI, presuming you have PHP installed.
Related Posts:
- WP CLI Shell not working on Windows
- WP Cli will not execute on Windows
- One-click WP site generation wih wp-cli on Windows
- Detect if WP is running under WP-CLI
- wp-cli Enabling Maintainance Mode
- wp-cli 0.14.1 MySQL error
- How to use wp-cli.yml file?
- WP cli –path does not seem to work
- How do I clone or duplicate a post with the WordPress Command Line Interface WP-CLI?
- wp-cli doesn’t find and wordpress installation
- wp-cli import theme sample data
- What could cause WP-CLI search-replace to not replace all instances of a string?
- Using Travis CI to run unit tests and running phpunit locally [closed]
- “Could not open input file” error even when WP-CLI is in the path
- WP-CLI over SSH – wp command not found
- wp-cli create post and media import
- Import Media To CPT with CLI & Filter Custom Taxonomy
- wp-cli with MAMP shows sh: mysql: command not found
- What is the difference between the Package Language and the Site Language?
- PHP warning are displaying when using WP CLI [closed]
- How can I replace all regex matches using the WP_CLI search-replace tool
- How do I update a nested option?
- Trying to install WordPress on WSL Windows 10, and running into issues with wp-cli and “wp db create”
- Is it possible to use WP-CLI via PHP-framework?
- What tools respect `.distignore`?
- How to prevent WP-CLI shell from exiting when an exception occurs?
- WP-CLI Get Site ID from its url
- WP-CLI alias: connect with ssh proxy
- wp-cli: run post generate and post meta add together
- Setting boolean and array values using wp theme mod set
- Ask WP-CLI latest core WordPress version released
- How can I get the WP-CLI eval-file command to report errors to stderr?
- WP CLI: there has been critical error
- wp-cli: wp term generate xxxxx – Error: ‘xxxxx’ is not a registered taxonomy
- MAMP PRO WP-CLI Error: Error establishing a database connection
- “Class ‘Phar’ not found” error setting up WP-CLI with Cygwin
- Running WP-CLI without SSH
- How do you kill WP-CLI execution?
- Is it possible to delete a range of posts by ID with WP-CLI?
- How to specify to wp-cli for the `wp config create` (`wp core config`) command that the DB user is an ‘all hosts’ user?
- Formatting messed up when piping wp commands
- wpcli: Error on post_content or post_title if accents
- wp-cli configuration in php?
- Lock User and Enforce Password change via wp-cli
- BackupBuddy WP CLI Invalid Profile Error
- How to find what pages/posts contain a particular reusable block?
- How can I search and replace by post type?
- WP CLI not outputting anything
- Only the WP CLI command, wp –info, runs under my cPanel account
- WP-CLI search-replace posts content for certain URLs
- Bulk remove custom post type and its attachments with wp-cli?
- How to rename default category name and slug using WP CLI?
- Resetting internal WordPress state during its cycle
- WP-CLI can not find Url
- Running custom defined WP-CLI commands without WordPress installation present
- Wildcard for wp-cli search-replace
- Update BackupBuddy with WP-CLI
- Wrong output order when mixing WP_CLI::API and php-cli-tools
- WP-CLI not working from Bash script
- Get media url (featured image) with wp-cli
- MySQL 5.6 Causes Errors with WP CLI
- Using WP-CLI, how do I delete a post by title or slug, not ID?
- wp-cli only displays PHP version for all input options
- WP CLI: search and replace specific directory name of URL
- WP-CLI plugin install causes PHP fatal error – Using $this when not in object context
- How to delete a single post using wp cli in command line?
- Adding content from file with wp post create
- How to run wp cli from a wp hook?
- wp-cli PHP Notice after moving server behind load balancer
- What is the purpose of the “user” global parameter in wp-cli.yml config?
- Userless db-only wordpress instalation
- PHPUnit via WP-CLI: Warning: Cannot modify header information … bootstrap.php:68
- Add passwords to config.yml to manage multiple sites
- WP-CLI mysteriously stopping while downloading the core [closed]
- WP-CLI: Does “wp post create” will create post normally and will ping to Ping Service?
- Trying to install/configure wp-cli for WordPress
- Logs for WP CLI
- WP-Cli Autoloads Non-existant Framework
- Mocking WP_CLI static methods in unit tests
- Give WP-Cli User Home Directory Privileges
- How to add an array to a command “wp config set”?
- WP-CLI: detect altered core files and restore them automatically
- wp-cli core install unknown: fatal: file /etc/postfix/main.cf: parameter mail_owner: user postfix has same user ID as _postfix
- How to specify which editor is used when editing posts with WP-CLI?
- bash script wp-cli search-replace 0 replacements, but command-line 3000+
- WP changes siteurl, but some URLs then don’t work
- Is WP-CLI safe to use in a hosting environment? Why?
- Install plugin on remote wordpress
- WP-CLI is unable to update password
- Make WordPress more like Jekyll (using wp-cli package?)
- 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?
- Install WordPress using PHP
- How to install WordPress with Composer?
- wp-cli output ‘column display format’ / wrapping
- When might you need to specify the “url” argument/option in WP-CLI?
- wp-cli incorrectly believes a plugin is currently installed
- WordPress CLI isn’t working while use WordPress development repository
- Using wp-cli on remote with quoted commands
- is it possible to use wp cli to export custom post types