云策 WordPress 开发者社区
首页
新闻
主题
插件
REST API
WP CLI
Hooks
云策官网
WP CLI说明文档
首页
/
WP CLI说明文档
/
wp theme
/
wp theme activate
wp theme activate
查看官方原文 ↗
命令概述
用于激活指定的WordPress主题,切换站点外观。
适合在需要更换当前主题时使用,激活后主题立即生效。
参数列表
参数
说明
<theme>
要激活的主题名称。
常用示例
激活主题示例
$ wp theme activate twentysixteen