A command line interface for WordPress

Commands » theme

wp theme - Manage themes.

Quick links: Github issues


# 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 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 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


Name Description
activate Activate a theme.
delete Delete a theme.
disable Disable a theme on a WordPress multisite install.
enable Enable a theme on a WordPress multisite install.
get Get details about 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 directory.
status See the status of one or all themes.
update Update one or more themes.