Skip to content


WP-CLI is the command line interface for WordPress. Thanks to this tool you can quickly install WordPress, additional plugins / templates or update them.

Initial configuration

Before installing WP-CLI:

  • Log in to your account via SSH.
  • Enable the use of your own software - Binexec.

Installation of WP-CLI

mkdir ~/bin
wget -O ~/bin/wp
chmod +x ~/bin/wp

Installing WordPress in the selected directory

wp core download --locale=en_GB --path=/usr/home/LOGIN/domains/DOMAIN/public_html


  • LOGIN is the username.
  • DOMAIN is your domain name.



The commands should be run from the directory where WordPress is installed.

Updated WordPress engine with database

wp core update wp core update-db

Backing up the database

wp db export path/to/directory/mycopy.sql

Restoring a copy of the database

wp db import path/to/directory/mycopy.sql

Plugin installation/uninstallation

wp plugin install/uninstall PLUGIN_NAME

Plugin activation/deactivation

wp plugin activate/deactivate PLUGIN_NAME

Installing/uninstalling the theme

wp theme install/delete THEME_NAME

Updated the theme

wp theme update THEME_NAME

The full list of commands is available at:

External references

WP-CLI project website
WordPress Site