wp theme

Manages themes, including installs, activations, and updates.

See the WordPress Theme Handbook developer resource for more information on themes.

Examples

# 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. Success: Installed 1 of 1 themes. # 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