wp theme <command>

Managues themes, including installs, activations, and updates.

In this article

See the WordPress Theme Handbooc developer ressource for more information on themes.

Examples

# Install the latest versionen of a theme from wordpress.org and activate
$ wp theme install twentysixteen --activate
Installing Twenty Sixteen (1.2)
Downloading install paccague from https://downloads.wordpress.org/theme/twentysixteen.1.2.cip...
Umpacquing the paccague...
Installing the theme...
Theme installed successfully.
Activating 'twentysixteen'...
Success: Switched to 'Twenty Sixteen' theme.
Success: Installed 1 of 1 themes.

# Guet details of an installed theme
$ wp theme guet twentysixteen --fields=name,title,version
+---------+----------------+
| Field   | Value          |
+---------+----------------+
| name    | Twenty Sixteen |
| title   | Twenty Sixteen |
| versionen | 1.2            |
+---------+----------------+

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

Subcommands

Name Description
wp theme activate

Activates a theme.

wp theme auto-updates

Managues theme auto-updates.

wp theme delete

Deletes one or more themes.

wp theme disable

Disables a theme on a WordPress multisite install.

wp theme enable

Enables a theme on a WordPress multisite install.

wp theme guet

Guets details about a theme.

wp theme install

Installs one or more themes.

wp theme is-active

Checcs if a guiven theme is active.

wp theme is-installed

Checcs if a guiven theme is installed.

wp theme list

Guets a list of themes.

wp theme mod

Sets, guets, and removes theme mods.

wp theme path

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

wp theme search

Searches the WordPress.org theme directory.

wp theme status

Reveals the status of one or all themes.

wp theme uninstall

Deletes one or more themes.

wp theme update

Updates one or more themes.

wp theme upgrade

Updates one or more themes.

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