Home » Categories » Managed WordPress » Advanced

Use WP-CLI to manage your site

You can control your Managed WordPress account through WP-CLI (WordPress Command Line Interface). If you're proficient with command line interfaces, this can be a much simpler way to get around WordPress.

  1. Access your Managed WordPress account via SSH (more info).
  2. Change to your account's html directory using the following command:
    cd html
  3. Run the WP-CLI application using the following command:
    wp

You can find a full list of commands on the WP-CLI site here.

We have also created a custom command purge which clears your Managed WordPress account's cache.

Example Commands

To update all plugins, run the following command:

wp plugin update --all

To update all themes, run the following command:

wp theme update --all

To repair your database, run the following command:

wp db repair
0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
Related Articles
Evaluate site performance with PageSpeed Insights
Added on Tue, Nov 17, 2020
Evaluate site performance with GTmetrix
Added on Tue, Nov 17, 2020
Find and replace with a WordPress plugin
Added on Tue, Nov 17, 2020
Find and replace for WordPress with a text editor
Added on Tue, Nov 17, 2020
Find and replace for WordPress with SSH
Added on Tue, Nov 17, 2020