---
title: "Change WordPress Theme Using WP-CLI"
description: "InMotion Hosting's WordPress Hosting features WordPress Command Line Interface (WP-CLI). WP-CLI allows you to use the command line to efficiently maintain your WordPress website(s). In our previous..."
url: https://www.inmotionhosting.com/support/edu/wordpress/wp-cli/change-wordpress-theme-using-wp-cli/
date: 2018-02-06
modified: 2021-08-16
author: "InMotion Hosting Contributor"
categories: ["WP-CLI"]
type: post
lang: en
---

# Change WordPress Theme Using WP-CLI

InMotion Hosting’s [WordPress Hosting](https://www.inmotionhosting.com/wordpress-hosting) features **WordPress Command Line Interface** (*WP-CLI*). WP-CLI allows you to use the command line to efficiently maintain your WordPress website(s). In our previous guide, [Install a Theme Using WP-CLI](/support/edu/wordpress/wp-cli/install-a-theme-using-wp-cli/) we introduced the **wp theme** command. In this guide, you will learn **how to *list your installed themes*** and **how to *change the theme for your WordPress website* using WP-CLI**.

## List Installed Themes

1. [SSH into your server](/support/server/ssh/shared-reseller-ssh/) as the cPanel user that owns the website you would like to list the themes for.
2. Use the cd command to switch to the [document root directory of your website](/support/website/where-to-upload-files/).Example: cd **public_html/my_website** **NOTE: **Be sure to replace **public_html/my_website** with the actual path to the document root directory of your website.
3. Run the following subcommand, to list your currently installed themes:wp theme list

Now that you are familiar with listing the installed themes, you can follow the instructions in the next section to change the active theme for your website to one of the themes listed. If you have not yet installed the theme you would like to change to, you can follow our guide [Install a Theme Using WP-CLI](/support/edu/wordpress/wp-cli/install-a-theme-using-wp-cli/).

## Change Theme

Once you have a theme in mind to change your website to, you can simply use the **wp theme** command to activate it.

1. [SSH into your server](/support/server/ssh/shared-reseller-ssh/) as the cPanel user that owns the website you would like to change the theme on.
2. Use the cd command to switch to the [document root directory of your website](/support/website/where-to-upload-files/).Example: cd **public_html/my_website** **NOTE: **Be sure to replace **public_html/my_website** with the actual path to the document root directory of your website.
3. Run the following subcommand, to list your currently installed themes: wp theme activate boldgrid-primas

**Congratulations!** You now know how to list the installed themes and how to change the theme for your WordPress site, using WP-CLI.

Learn more about [WP-CLI](https://www.inmotionhosting.com/support/edu/wordpress/wp-cli/), the command-line interface for WordPress, and how to streamline your WordPress maintenance workflows!
