WP-CLI has many excellent tools for managing WordPress websites via the SSH console.

To view 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) are not transferred during migrations. In this case, nothing will be displayed in the wp theme list.

In order to find the last used WordPress theme follow the steps described below:

- Log in to the SSH console.

- Navigate to the root folder of your WordPress website.

- Make sure you are in the correct directory by running the command:

wp option get home && wp option get siteurl

      https://example.com
      https://example.com

- Type the wp theme list command. If themes are not listed, use the wp option list command with the grep filter to view only the current theme:

wp option list | grep current_theme
      current_theme	Square

- If the theme name appears, install the theme using wp theme install theme-name.

 

For assistance in applying the above instructions on HostX servers please contact us. HostX offers the fastest WordPress hosting and can help you solve your problems.

Was this answer helpful? 0 Users Found This Useful (0 Votes)