Bundle WP-CLI into a phar.
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.
You may download that latest wp-cli.phar here or previous versions from the Releases section.
- 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
- 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
Combines the most common commands into the standard, installable version of WP-CLI.
Generally, bundled commands either relate directly to a WordPress API or offer some common developer convenience. New commands are included in the WP-CLI bundle when the project governance decides they should be. There isn't much of a formal process to it, so feel free to ask if you ever have a question.
The handbook documents the various ways you can install the bundle. The Phar is built on every merge and pushed to wp-cli/builds repository. A stable version is tagged a few times each year.
Both wp-cli/wp-cli
and wp-cli/wp-cli-bundle
use milestones to indicate the next stable release. For wp-cli/wp-cli
, the milestone represents the version of the WP-CLI framework. For wp-cli/wp-cli-bundle
, the milestone represents the WP-CLI Phar version. We keep these in sync for backwards compatibility reasons, and to avoid causing confusion with third party commands. Each of the command repositories are versioned independently according to semantic versioning principles as needed.