← ServerPilot Docs

Getting Started with WP-CLI

WP-CLI is a powerful tool that allows you to use the command line over SSH to manage your WordPress installations. Everything from updating plugins to deleting comments (and much more) can be done without using a web browser. This is especially useful if you are unable to access the wp-admin area of your WordPress site.

WP-CLI is installed by default on your server managed by ServerPilot.

You can call WP-CLI by using this command as your WordPress app's system user:

wp

You can can also configure the PHP version used when you call just the wp command.

The full list of WP-CLI commands is available in the official WP-CLI documentation.

This series will walk you through using WP-CLI to quickly and easily perform administrative tasks on your WordPress site.

  1. Mange your users from the command line over SSH.
  2. Quickly add and remove WordPress themes.
  3. Efficiently install, activate, and deactivate plugins individually or all at once.
  4. A detailed description of one of most useful, yet most advanced, features of WP-CLI.
Last updated: May 20, 2020

Launch your first site in 5 minutes