| layout | default |
|---|---|
| title | wp theme |
| display_global_parameters | true |
Commands » theme
wp theme - Manage themes.
Quick links: Github issues
# Install the latest version from wordpress.org and activate
$ wp theme install twentysixteen --activate
Installing Twenty Sixteen (1.2)
Downloading install package from http://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 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
| Name | Description |
|---|---|
| activate | Activate a theme. |
| delete | Delete a theme. |
| disable | Disable a theme in a multisite install. |
| enable | Enable a theme in a multisite install. |
| get | Get a theme |
| install | Install a theme. |
| is-installed | Check if the theme is installed. |
| list | Get a list of themes. |
| mod | Manage theme mods. |
| path | Get the path to a theme or to the theme directory. |
| search | Search the wordpress.org theme repository. |
| status | See the status of one or all themes. |
| update | Update one or more themes. |