Link Search Menu Expand Document

WP-CLI - Wordpress Command Line Interface

With WP-CLI you can manage and update core, plugins, users, themes and many more without using browsers.


  • UNIX-like environment
  • PHP 5.6 or later
  • WP core version 3.7 or later


Donwload the wp-cli.phar file:

curl -O

Check if it’s working:

php wp-cli.phar --info

To be able to use the command: wp, make this file executable:

chmod +x wp-cli.phar

Move it in your working file somewhere:

sudo mv wp-cli.phar /usr/local/bin/wp

Check if it works:

wp --info

Or check your WP version

wp core version


If you are working on a shared hosting where you don’t have the sudo access to the root and they don’t install WP-CLI, you still can use this but not with wp alias. Use the following for this example wp core version :

php wp-cli.phar core version