Skip to content

CLI 操作与命令分层

为什么单独做这一页

OpenClaw CLI 覆盖面广(安装、配置、网关、渠道、会话、工具、安全、节点)。 将命令按运维场景分层后,更适合团队日常执行。

参考:

命令分层

入门层

bash
openclaw onboard
openclaw dashboard
openclaw status
openclaw gateway status

配置层

bash
openclaw configure
openclaw config get
openclaw config set

运行层

bash
openclaw logs --follow
openclaw channels status --probe
openclaw sessions list

安全层

bash
openclaw security audit
openclaw secrets reload

诊断层

bash
openclaw doctor
openclaw health

推荐的团队约定

  • 任何生产变更前先执行 status + doctor + security audit
  • 任何生产故障先保留日志,再做重启
  • 统一 --json 输出接入自动化脚本

开发者/产品经理协作点

  • 开发者维护命令手册和自动化脚本。
  • 产品经理维护“命令触发的业务流程”与审批门槛。