Using WP-CLI

Applies to: Grid

Difficulty: Medium

Time Needed: 20 minutes

Tools Required: SSH access

Applies to: WordPress Hosting

Difficulty: Medium

Time Needed: 20 minutes

Tools Required: SSH access

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.

Overview

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.

Instructions

NOTE:

On the GridManaged Wordpress hosting platform, WP-CLI is already installed and ready to go.