Find Your Last Used Theme With WP-CLI Updated on August 16, 2021 by InMotion Hosting Contributor 0 Minutes, 51 Seconds to Read 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 | 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 Login SSH. Navigate to the root directory of your WordPress website. 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 Type the wp theme list command. If no theme shows, use the wp option list command with the grep filter to view only the current theme line. wp option list | grep current_theme current_theme Square If the theme name shows, install the theme using the wp theme install theme-name. Learn more about WP-CLI, the command-line interface for WordPress, and how to streamline your WordPress maintenance workflows! Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles Install and Configure WP-CLI How to Create and Delete a WordPress Page Using WP-CLI Install a Theme Using WP-CLI Install WordPress Using WP-CLI Manage WordPress Comments Using WP-CLI Update WordPress Using WP-CLI Manage WordPress Users Using WP-CLI WP-CLI search-replace Command Delete WordPress Transients Using WP-CLI Manage WordPress Plugins with WP-CLI