WP-CLI Bundle - Windows Fork
A maintained fork of WP-CLI to build a wp-cli.phar for Windows.
Forked with the following customizations:
- Support
wp shellon Windows. - Pass a custom output directory for the bundled
wp-cli.pharfile. - Pass a custom version to the bundled
wp-cli.pharfile. - Support
wp restcommands from wp-restful. - Support
wp profilecommands from wp-profile.
Downloading wp-cli.phar
You may download that latest wp-cli.phar here or previous versions from the Releases section.
Building a wp-cli.phar
- Clone or download this repo.
- Run
composer installfrom the root directory. - Run the following command while specifying an output directory.
bash ./utils/update-phar <output directory> <version>
Example
bash ./utils/update-phar E:/scripts/wordpress 2.5.0-windows
Running from source
- Run
composer installfrom the root directory. - Run the executables found in
vendor/wp-cli/wp-cli/binfrom the WordPress site root. E.G.E:/SVN/wp-cli-bundle/vendor/wp-cli/wp-cli/bin/wp option get siteurl