Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A command line interface for WordPress
PHP Cucumber Shell HTML

Merge pull request #2131 from wp-cli/2089-globalize-blog-id

Globalize `$blog_id`, `$site_id`, and `$public` before loading WordPress


Build Status

WP-CLI is a set of command-line tools for managing WordPress installations.


If you just want to use WP-CLI, see

If you want to hack on WP-CLI, see

Where can I get more info?

For documentation and examples, check out and the wiki.

Also, WordPress Answers has a growing list of WP-CLI related questions.

If you want to receive an email for every single commit, you can subscribe to the wp-cli-commits mailing list.

I'm running into troubles, what can I do?

To suggest a feature, report a bug, or general discussion, visit the issues section.

If you're reporting a bug, please also post the output from wp --info.


Besides the libraries defined in composer.json, we have used code or ideas from the following projects:

Who's behind this thing?

For more info, see Governance.

A complete list of contributors can be found here.

Something went wrong with that request. Please try again.