@wecom/wecomserver-openclaw-cli
企业微信私有部署(WeCom Server)OpenClaw 官方插件安装脚手架工具。帮助用户快速安装、配置、更新和诊断企业微信私有部署 OpenClaw 插件。
快速使用
通过 npx 执行(推荐,无需安装)
npx -y @wecom/wecomserver-openclaw-cli <command>
例如:
npx -y @wecom/wecomserver-openclaw-cli install
npx -y @wecom/wecomserver-openclaw-cli info
npx -y @wecom/wecomserver-openclaw-cli doctor
全局安装
如果需要频繁使用,也可以全局安装:
npm install -g @wecom/wecomserver-openclaw-cli
安装完成后,可以直接使用 wecomserver-openclaw-cli 命令:
npx -y @wecom/wecomserver-openclaw-cli --help
命令
install — 安装插件
安装并配置企业微信私有部署官方 OpenClaw 插件。安装过程中会自动检测并禁用冲突插件,并交互式提示输入机器人 ID(Bot ID)、机器人密钥(Secret)、WebSocket URL 和 CA 证书(可选)。
提示:如果插件已安装,install 会自动进入更新流程,无需手动调用 update。
npx -y @wecom/wecomserver-openclaw-cli install
npx -y @wecom/wecomserver-openclaw-cli install --version 1.2.0
npx -y @wecom/wecomserver-openclaw-cli install --force
npx -y @wecom/wecomserver-openclaw-cli install --package-name @my-scope/my-plugin
npx -y @wecom/wecomserver-openclaw-cli install --skip-config
npx -y @wecom/wecomserver-openclaw-cli install --force --skip-config
--version <version> | 安装指定版本的插件 |
--package-name <packageName> | 指定 npm 包名(默认 @wecom/wecomserver-openclaw-plugin,腾讯内网备用 @tencent/wecomserver-openclaw-plugin) |
--force | 强制重新安装,清除已有插件目录和配置 |
--skip-config | 跳过 channels 配置引导(有历史配置则自动恢复,无则跳过) |
update — 更新插件
将已安装的企业微信私有部署插件更新到最新版本。更新完成后会自动运行 doctor 诊断检查。
npx -y @wecom/wecomserver-openclaw-cli update
npx -y @wecom/wecomserver-openclaw-cli update wecomserver-openclaw-plugin
[pluginName] | 可选,指定要更新的插件名(默认 wecomserver-openclaw-plugin) |
info — 查看信息
显示 CLI 版本、OpenClaw 版本、插件版本和环境信息。
npx -y @wecom/wecomserver-openclaw-cli info
npx -y @wecom/wecomserver-openclaw-cli info --all
--all | 显示所有详细信息,包括配置状态、冲突插件、npm 源连通性和脱敏配置 |
doctor — 诊断问题
全面检查插件安装状态,包括:插件目录、依赖完整性、配置正确性、冲突插件检测和 channel 配置。
npx -y @wecom/wecomserver-openclaw-cli doctor
npx -y @wecom/wecomserver-openclaw-cli doctor --fix
--fix | 尝试自动修复检测到的问题(如安装依赖、移除冲突插件、补全配置等) |
其他
版本查看
npx -y @wecom/wecomserver-openclaw-cli -V
npx -y @wecom/wecomserver-openclaw-cli --cli-version
License
ISC