Skip to content

附录A CLI命令速查

这份清单只放常用且官方 CLI 文档有明确定义的命令,便于小白直接抄。


命令作用
openclaw --version看当前版本
openclaw status看整体状态总览
openclaw doctor自动体检并提示修复
openclaw logs --follow实时看日志
openclaw gateway status看网关服务状态
openclaw channels status --probe渠道体检(连通性+凭证可用性)
openclaw sessions --json导出会话列表(机器可读)
openclaw health快速健康检查

命令说明
`curl -fsSL https://openclaw.ai/install.shbash`
npm i -g openclaw@latestnpm 全局升级
pnpm add -g openclaw@latestpnpm 全局升级
openclaw setup初始化配置与工作区
openclaw onboard交互式引导
openclaw onboard --install-daemon引导 + 安装守护服务
openclaw update源码安装常用更新命令

命令说明
openclaw gateway前台运行网关
openclaw gateway run前台运行(别名)
openclaw gateway install安装网关服务
openclaw gateway start启动网关服务
openclaw gateway stop停止网关服务
openclaw gateway restart重启网关服务
openclaw gateway status服务状态 + 探测
openclaw gateway probe调试探测(本地/远端)
openclaw gateway discover发现可达网关
openclaw gateway call status直接发 RPC 调用

命令说明
openclaw configure打开交互式配置向导
openclaw config get <path>读取配置项
openclaw config set <path> <value>设置配置项
openclaw config unset <path>删除配置项
openclaw models list列出模型
openclaw models status --probe模型体检(鉴权+可用性)
openclaw models set <provider/model>设置默认模型

命令说明
openclaw channels list查看已配置渠道
openclaw channels add交互式添加渠道
openclaw channels remove <channel>删除渠道
openclaw channels login <channel>渠道登录(支持的渠道)
openclaw channels logout <channel>渠道退出登录
openclaw channels status --probe渠道体检(连通性+凭证)
openclaw pairing list <channel>查看待配对请求
openclaw pairing approve <channel> <code>批准配对码

命令说明
openclaw skills list列出 Skills
openclaw skills list --eligible查看“可用清单”(能立刻调用的 Skills)
openclaw skills info <name>查看单个 Skill 详情
openclaw skills check统一检查 Skills 状态
clawhub search "<keyword>"搜索 Skill
clawhub install <slug>安装 Skill
clawhub update --all批量更新 Skill
openclaw plugins list列出插件
`openclaw plugins install <path.tgz
openclaw plugins enable <id>启用插件
openclaw plugins disable <id>禁用插件
openclaw agents list --bindings查看 agent 与分流规则(谁接哪类消息)
openclaw agents add <id> --workspace <dir>新建 agent
openclaw agents delete <id>删除 agent

命令说明
openclaw security audit安全审计
openclaw security audit --deep深度安全审计
openclaw approvals get查看审批配置
openclaw approvals set <jsonFile>从文件更新审批策略
openclaw approvals allowlist add <agentId> <toolName>增加“白名单放行”规则
openclaw approvals allowlist remove <agentId> <toolName>删除“白名单放行”规则

命令说明
openclaw sessions查看会话列表
openclaw sessions --active 120看最近活跃会话
openclaw sessions --jsonJSON 输出
openclaw reset --dry-run预演重置,不实际执行
openclaw reset --scope config+creds+sessions --yes --non-interactive非交互式重置指定范围