sh 终端命令通过WP CLI压缩插件/主题发布和安装

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 终端命令通过WP CLI压缩插件/主题发布和安装相关的知识,希望对你有一定的参考价值。

## Syntax
zip -r <plugin-slug>-<version>.zip <plugin folder> -x@<plugin folder>/release_excludes.lst

## Syntax Examples
# execute from folder above the plugin or theme folder
zip -r divi-card-factory-1.7.1.zip divi-card-factory -x@divi-card-factory/release_excludes.lst
zip -r mydivi-theme-3.8.6.zip mydivi-theme -x@mydivi-theme/release_excludes.lst
## Install from private_html folder
wp plugin install ../private_html/divi-card-factory-1.7.0.zip --activate --force --skip-plugins --skip-themes
wp theme install ../private_html/mydivi-theme-3.8.5.zip --activate --force --skip-plugins --skip-themes

## Install from S3
wp plugin install https://assets.roadsidemultimedia.com/plugins/divi-card-factory/divi-card-factory-1.7.1.zip --activate --force --skip-plugins --skip-themes
wp theme install https://assets.roadsidemultimedia.com/themes/mydivi-theme/mydivi-theme-3.8.5.zip --activate --force --skip-plugins --skip-themes

以上是关于sh 终端命令通过WP CLI压缩插件/主题发布和安装的主要内容,如果未能解决你的问题,请参考以下文章

sh WP CLI强制更新所有插件

sh [多站点中的活动主题]在多站点安装中列出每个站点的活动主题#wp-cli #bash #multisite

sh 在MAMP上通过WP CLI安装WP和创建配置文件的脚本

sh 本地化WordPress主题和插件(https://github.com/Phoenix2k/wp-theme-localization)

wordpress上传主题出错

sh WP-CLI:提示和技巧