Skip to content

bashou/wp-cli

 
 

Repository files navigation

WP-CLI

Build Status

wp-cli is a set of command-line tools for managing WordPress installations.

Where can I get more info?

For documentation, usage, and examples, check out wp-cli.org.

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

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

Who's behind this thing?

We are Andreas Creten and Cristi Burcă, friendly guys from Europe.

A complete list of contributors can be found here.

Need even more info?

Read our wiki and find out how to create your own commands with our commands cookbook.

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

Running tests

There are two types of tests:

  • unit tests, implemented using PHPUnit
  • functional tests, implemented using Behat

All the test dependencies can be installed using composer:

composer.phar install --dev

Before running the tests, you'll need a MySQL user called wp_cli_test with the password password1 that has full privileges on the MySQL database wp_cli_test. Running the following as root in MySQL should do the trick:

GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost" IDENTIFIED BY "password1";

Finally, to run the unit tests:

vendor/bin/phpunit

And to run the functional tests:

vendor/bin/behat

About

A command line interface for WordPress

Resources

License

Stars

Watchers

Forks

Packages

No packages published