WP-CLI Bundle
Bundle WP-CLI into a phar.
wp shell
This version was forked to keep it compatible with Windows for things like Forked with the following customizations:
- Support
wp shell
on Windows. - Pass a custom output directory for the bundled
wp-cli.phar
file. - Pass a custom version to the bundled
wp-cli.phar
file. - Support
wp rest
commands from wp-restful.
wp-cli.phar
Downloading You may download that latest wp-cli.phar here or previous versions from the Releases section.
wp-cli.phar
Building a - Clone or download this repo.
- Run
composer install
from 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 install
from the root directory. - Run the executables found in
vendor/wp-cli/wp-cli/bin
from the WordPress site root. E.G.E:/SVN/wp-cli-bundle/vendor/wp-cli/wp-cli/bin/wp option get siteurl