READ ME FIRST
This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications is not supported by (mt) Media Temple. Please take a moment to review the Statement of Support.
WP-CLI is an open-source suite of command-line tools for managing and administering WordPress. Most functions that can be done in the WordPress Dashboard via a web browser can be completed by typing a command at a prompt. If you have the Grid hosting platform, WP-CLI is already installed, configured, and ready to go. It can be accessed by typing the WP command once you are connected to your server via an SSH terminal.
Plugin authors may make use of the WP-CLI commands right in their plugin code, but its real extensibility is in the speed of inputting and automating commands rather than manually clicking around a dashboard, and is greatly appreciated by keyboard wizards everywhere.
On the GridWordPress Hosting hosting platform, WP-CLI is already installed and ready to go.
- First, log into your hosting platform via SSH as the Server Administrator user.
- Next, type "wp" and hit enter. You will be presented with a list of sub-commands that can be executed. The format is "wp command some_modifier"
- To get more information and sub-commands for a specific command, type wp help command.
$> wp help core NAME wp core DESCRIPTION Download, install, update and otherwise manage WordPress proper. SYNOPSIS wp core <subcommand> SUBCOMMANDS config Set up a wp-config.php file. download Download core WordPress files. init-tests Set up the official test suite using the current WordPress instance. install Create the WordPress tables in the database. is-installed Determine if the WordPress tables are installed. multisite-convert Transform a single-site install into a multi-site install. multisite-install Install multisite from scratch. update Update WordPress. update-db Update the WordPress database. version Display the WordPress version.
More Learning Resources
WP-CLI Official List of Commands:
Mike Schroder on WordPress.tv:
WP CLI For Fun & Profit:
Using WP-CLI in your plugins: