WP-CLI is a command line interface for WordPress. You can update plugins, configure multi-user installations and much more without using a web browser.

This material is a crib, which contains all WP-CLI the commands. To learn more, visit the websites:

Basic commands:

# Update
wp cli update --yes

# Update all additional packages
wp package update

# Version and other info
wp --info

Full list: wp cli.

What you can do using WP-CLI

WP-CLI provides a bunch of actions that are usually done through the WordPress admin panel.

For example, the command wp plugin install --activate allows you to install and activate plugin from WordPress repository:

$ wp plugin install user-switching --activate
Installing User Switching (1.0.9)
Downloading install package from https://downloads.wordpress.org/plugin/user-switching.1.0.9.zip...
Unpacking the package...
Installing the plugin...
Plugin installed successfully.
Activating 'user-switching'...
Plugin 'user-switching' activated.
Success: Installed 1 of 1 plugins.

WP-CLI also includes commands for many things that cannot be done from WordPress admin area.

For example, wp transient delete --all allows you to delete one or all of the transient options:

$ wp transient delete --all
Success: 34 transients deleted from the database.

List of all commands

See in Commands section.