跳到主要内容

clawdbot plugins

管理网关插件/扩展(在进程内加载)。

相关内容:

命令

clawdbot plugins list
clawdbot plugins info <id>
clawdbot plugins enable <id>
clawdbot plugins disable <id>
clawdbot plugins doctor
clawdbot plugins update <id>
clawdbot plugins update --all

内置插件随 Clawdbot 一起发布,但初始状态为禁用。使用 plugins enable 来激活它们。

所有插件都必须提供一个带有内联 JSON Schema (configSchema,即使为空) 的 clawdbot.plugin.json 文件。缺失或无效的清单或模式将导致插件无法加载,并导致配置验证失败。

安装 (Install)

clawdbot plugins install <path-or-spec>

安全说明:安装插件就像运行代码一样,请谨慎操作。建议使用固定版本。

支持的存档格式:.zip, .tgz, .tar.gz, .tar

使用 --link 避免复制本地目录(将其添加到 plugins.load.paths):

clawdbot plugins install -l ./my-plugin

更新 (Update)

clawdbot plugins update <id>
clawdbot plugins update --all
clawdbot plugins update <id> --dry-run

更新仅适用于从 npm 安装的插件(在 plugins.installs 中跟踪)。