wp theme <command>

Manages site themes, including installs, activations, and updates.

See the WordPress Theme Handbook developer resource.


# Install the latest version of a theme from wordpress.org and activate
$ wp theme install twentysixteen --activate
Installing Twenty Sixteen (1.2)
Downloading install package from https://downloads.wordpress.org/theme/twentysixteen.1.2.zip...
Unpacking the package...
Installing the theme...
Theme installed successfully.
Activating 'twentysixteen'...
Success: Switched to 'Twenty Sixteen' theme.

# Get details of an installed theme
$ wp theme get twentysixteen --fields=name,title,version
| Field   | Value          |
| name    | Twenty Sixteen |
| title   | Twenty Sixteen |
| version | 1.2            |

# Get status of theme
$ wp theme status twentysixteen
Theme twentysixteen details:
        Name: Twenty Sixteen
        Status: Active
        Version: 1.2
        Author: the WordPress team

Top ↑


Name Description
wp theme activate

Activate a theme.

wp theme delete

Delete a theme.

wp theme disable

Disable a theme on a WordPress multisite install.

wp theme enable

Enable a theme on a WordPress multisite install.

wp theme get

Get details about a theme.

wp theme install

Install a theme.

wp theme is-installed

Check if the theme is installed.

wp theme list

Get a list of themes.

wp theme mod

Manage theme mods.

wp theme path

Get the path to a theme or to the theme directory.

wp theme search

Search the WordPress.org theme directory.

wp theme status

See the status of one or all themes.

wp theme update

Update one or more themes.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.