---
title: "Find Your Last Used Theme With WP-CLI"
description: "WP-CLI has many great tools for managing WordPress websites in SSH. You can view your currently installed themes using WP-CLI: wp theme list +--------+--------+-----------+---------+ | name | status..."
url: https://www.inmotionhosting.com/support/edu/wordpress/wp-cli/find-your-last-used-theme-with-wp-cli/
date: 2019-05-29
modified: 2021-08-16
author: "InMotion Hosting Contributor"
categories: ["WP-CLI"]
type: post
lang: en
---

# Find Your Last Used Theme With WP-CLI

[WP-CLI](/support/edu/wordpress/wp-cli/) has many great tools for managing WordPress websites in SSH. You can view your currently installed themes using [WP-CLI](/support/edu/wordpress/wp-cli/change-wordpress-theme-using-wp-cli/):

wp theme list
+--------+--------+-----------+---------+
| name | status | update | version |
+--------+--------+-----------+---------+
| square | active | available | 1.3.8 |
+--------+--------+-----------+---------+
Sometimes theme files (*wp-content/themes*) aren’t transferred during migrations. In this case, nothing will show with the wp theme list. Below we cover **how you may be able to see that last used WordPress theme**.

## Find Last Theme with WP-CLI

1. [Login SSH](/support/server/ssh/do-you-provide-ssh-access/).
2. [Navigate to the root directory](/support/website/where-to-upload-files/) of your WordPress website.
3. **Ensure you’re in the correct directory** with the following command: wp option get home && wp option get siteurl https://example.com https://example.com
4. Type the wp theme list command. If no theme shows, use the [wp option list](https://developer.wordpress.org/cli/commands/option/list/) command with the *grep* filter to view only the current theme line. wp option list | grep current_theme *current_theme Square*
5. If the theme name shows, [install the theme](/support/edu/wordpress/wp-cli/install-a-theme-using-wp-cli/) using the wp theme install *theme-name*.

 

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!
