Cli 导读

CLI reference:命令行这颗按钮到底按哪儿

命令行里的 CLI reference 像一排小开关。你要先认清哪一颗是开门、哪一颗是查看、哪一颗是修理,出错时又该先听哪一种回声。原文最响的一记鼓点,其实是:openclaw is the main CLI entry point. Each core 魔法口令 has either a dedicated reference p…。

先听这页的人话版

CLI reference

这一页不是在堆术语,它像把“CLI reference”这台小机器搬到桌上,当着你的面拆开给你看。你先不用全记住,先抓住它到底在忙什么:openclaw is the main CLI entry point. Each core 魔法口令 has either a dedicated reference page or i…。

如果把这页当成“给普通人看的版本”,你最应该带走的是:它到底在教你一件什么事、什么时候要这样做、以及哪里最容易踩坑。

原始路径:/cli 章节数量:8 查看原文

第 1 站

Start Here

这一节更像安装或配置步骤,重点不是概念,而是“按什么顺序做才不会卡住”。

这段在解决什么

这一节更像安装或配置步骤,重点不是概念,而是“按什么顺序做才不会卡住”。

为什么值得看

很多文档看起来长,其实是在防你漏掉前置条件。

真要动手时

真正照做时,先找前置条件,再找必填项,最后看验证方法。

先别急着背术语

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:openclaw is the main CLI entry point. Each core 魔法口令 has either a dedicated reference page or is documented with the 魔法…。

像讲绘本

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:openclaw is the main CLI entry point. Each core 魔法口令 has either a dedicated reference page or is documented with the 魔法…。

原文小纸条

openclaw is the main CLI entry point. Each core command has either a dedicated reference page or is documented with the command it aliases; this index lists the commands, the global flags, and the output styling rules that apply across the CLI.

像讲绘本

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Use the setup 魔法口令s by intent:。

原文小纸条

Use the setup commands by intent:

像准备清单

这一串条目别硬背,把它当成“Start Here”门口贴出来的几张便签就行。它们在提醒你先备好什么、别漏掉什么、哪里最容易走错:openclaw setup creates the baseline 设置说明书…、openclaw onboard is the full guided first…、openclaw 设置说明书ure changes targeted parts…、openclaw 消息通道s add 设置说明书ures 消息通道 account…。

原文小纸条
  • openclaw setup creates the baseline config and workspace without walking the full guided onboarding flow.
  • openclaw onboard is the full guided first-run path for gateway, model auth, workspace, channels, skills, and health.
  • openclaw configure changes targeted parts of an existing setup, such as model auth, gateway, channels, plugins, or skills.
  • openclaw channels add configures channel accounts after the baseline exists; run it without flags for guided channel setup or with channel-specific flags for scripts.

第 2 站

魔法口令 pages

这一节主要在解释“魔法口令 pages”到底是干什么的,以及你什么时候会遇到它。

这段在解决什么

这一节主要在解释“魔法口令 pages”到底是干什么的,以及你什么时候会遇到它。

为什么值得看

如果你是第一次接触 OpenClaw,这一节最值得看的不是术语本身,而是它背后的使用场景和限制。

真要动手时

真正动手时,先看它有没有默认值、有没有必须打开的选项、以及会不会影响安全边界。

先别急着背术语

这一小段像旁白,在提醒我们镜头已经切到下一站。

像整理表格

这段是在把几种选项排成表格,左边像标签,右边像说明。手机上可以横向滑动原文表格。

原文表格
AreaCommands
Setup and onboardingcrestodian · setup · onboard · configure · config · completion · doctor · dashboard
Reset and uninstallbackup · reset · uninstall · update
Messaging and agentsmessage · agent · agents · acp · mcp
Health and sessionsstatus · health · sessions
Gateway and logsgateway · logs · system
Models and inferencemodels · infer · capability (alias for infer) · memory · commitments · wiki
Network and nodesdirectory · nodes · devices · node
Runtime and sandboxapprovals · exec-policy (see approvals) · sandbox · tui · chat/terminal (aliases for tui --local) · browser
Automationcron · tasks · hooks · webhooks
Discovery and docsdns · docs
Pairing and channelspairing · qr · channels
Security and pluginssecurity · secrets · skills · plugins · proxy
Legacy aliasesdaemon (gateway service) · clawbot (namespace)
Plugins (optional)meeting-notes · path · policy · voicecall (if installed)

第 3 站

Global flags

这一节主要在解释“Global flags”到底是干什么的,以及你什么时候会遇到它。

这段在解决什么

这一节主要在解释“Global flags”到底是干什么的,以及你什么时候会遇到它。

为什么值得看

如果你是第一次接触 OpenClaw,这一节最值得看的不是术语本身,而是它背后的使用场景和限制。

真要动手时

真正动手时,先看它有没有默认值、有没有必须打开的选项、以及会不会影响安全边界。

先别急着背术语

这一小段像旁白,在提醒我们镜头已经切到下一站。

像整理表格

这段是在把几种选项排成表格,左边像标签,右边像说明。手机上可以横向滑动原文表格。

原文表格
FlagPurpose
--devIsolate state under ~/.openclaw-dev and shift default ports
--profile <name>Isolate state under ~/.openclaw-<name>
--container <name>Target a named container for execution
--no-colorDisable ANSI colors (NO_COLOR=1 is also respected)
--updateShorthand for openclaw update (source installs only)
-V, --version, -vPrint version and exit

第 4 站

Output modes

这一节主要在解释“Output modes”到底是干什么的,以及你什么时候会遇到它。

这段在解决什么

这一节主要在解释“Output modes”到底是干什么的,以及你什么时候会遇到它。

为什么值得看

如果你是第一次接触 OpenClaw,这一节最值得看的不是术语本身,而是它背后的使用场景和限制。

真要动手时

真正动手时,先看它有没有默认值、有没有必须打开的选项、以及会不会影响安全边界。

先别急着背术语

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:CLI falls back to plain URLs. Palette source of truth: src/terminal/palette.ts.

像讲绘本

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:CLI falls back to plain URLs.

原文小纸条

CLI falls back to plain URLs.

像准备清单

这一串条目别硬背,把它当成“Output modes”门口贴出来的几张便签就行。它们在提醒你先备好什么、别漏掉什么、哪里最容易走错:ANSI colors and progress indicators rende…、OSC-8 hyperlinks render as clickable link…、--json (and --plain where supported) disa…、Long-running 魔法口令s show a progress indica…。

原文小纸条
  • ANSI colors and progress indicators render only in TTY sessions.
  • OSC-8 hyperlinks render as clickable links where supported; otherwise the
  • --json (and --plain where supported) disables styling for clean output.
  • Long-running commands show a progress indicator (OSC 9;4 when supported).
像讲绘本

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Palette source of truth: src/terminal/palette.ts.

原文小纸条

Palette source of truth: src/terminal/palette.ts.

第 5 站

魔法口令 tree

这一节在讲一类能力是怎么工作的:它能做什么、不能做什么、适合在什么场景下调用。

这段在解决什么

这一节在讲一类能力是怎么工作的:它能做什么、不能做什么、适合在什么场景下调用。

为什么值得看

你理解的是能力边界,不只是功能名字。

真要动手时

如果这节里同时出现命令、配置和例子,优先先看例子,再回头看配置。

先别急着背术语

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Full 魔法口令 tree 新本领插件s can add additional top-level 魔法口令s (for example openclaw voicecall).

像讲绘本

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Full 魔法口令 tree。

原文小纸条

Full command tree

像魔法口令拆解

这是一句直接对 OpenClaw 说的话,像你把任务清清楚楚塞到它手里。

  • 这一句是在直接叫 OpenClaw 动起来:“openclaw [--dev] [--profile <name>] <command>”。你可以把它想成一句说出口就要执行的差事。
  • 这一行“crestodian”是在给电脑递一张小纸条,告诉它眼下该做哪一步。
  • 这一行“setup”是在给电脑递一张小纸条,告诉它眼下该做哪一步。
原文代码块
openclaw [--dev] [--profile <name>] <command>
  crestodian
  setup
  onboard
  configure
  config
    get
    set
    unset
    file
    schema
    validate
  completion
  doctor
  dashboard
  backup
    create
    verify
  security
    audit
  secrets
    reload
    audit
    configure
    apply
  reset
  uninstall
  update
    wizard
    status
  channels
    list
    status
    capabilities
    resolve
    logs
    add
    remove
    login
    logout
  directory
    self
    peers list
    groups list|members
  skills
    search
    install
    update
    list
    info
    check
  plugins
    list
    inspect
    install
    uninstall
    update
    enable
    disable
    doctor
    marketplace list
  memory
    status
    index
    search
  meeting-notes
    list
    show
    path
  path
    resolve
    find
    set
    validate
    emit
  commitments
    list
    dismiss
  wiki
    status
    doctor
    init
    ingest
    compile
    lint
    search
    get
    apply
    bridge import
    unsafe-local import
    obsidian status|search|open|command|daily
  message
    send
    broadcast
    poll
    react
    reactions
    read
    edit
    delete
    pin
    unpin
    pins
    permissions
    search
    thread create|list|reply
    emoji list|upload
    sticker send|upload
    role info|add|remove
    channel info|list
    member info
    voice status
    event list|create
    timeout
    kick
    ban
  agent
  agents
    list
    add
    delete
    bindings
    bind
    unbind
    set-identity
  acp
  mcp
    serve
    list
    show
    set
    unset
  status
  health
  sessions
    cleanup
  tasks
    list
    audit
    maintenance
    show
    notify
    cancel
    flow list|show|cancel
  gateway
    call
    usage-cost
    health
    status
    probe
    discover
    install
    uninstall
    start
    stop
    restart
    run
  daemon
    status
    install
    uninstall
    start
    stop
    restart
  logs
  system
    event
    heartbeat last|enable|disable
    presence
  models
    list
    status
    set
    set-image
    aliases list|add|remove
    fallbacks list|add|remove|clear
    image-fallbacks list|add|remove|clear
    scan
  infer (alias: capability)
    list
    inspect
    model run|list|inspect|providers|auth login|logout|status
    image generate|edit|describe|describe-many|providers
    audio transcribe|providers
    tts convert|voices|providers|status|enable|disable|set-provider
    video generate|describe|providers
    web search|fetch|providers
    embedding create|providers
    auth add|login|login-github-copilot|setup-token|paste-token
    auth order get|set|clear
  sandbox
    list
    recreate
    explain
  cron
    status
    list
    get
    add
    edit
    rm
    enable
    disable
    runs
    run
  nodes
    status
    describe
    list
    pending
    approve
    reject
    rename
    invoke
    notify
    push
    canvas snapshot|present|hide|navigate|eval
    canvas a2ui push|reset
    camera list|snap|clip
    screen record
    location get
  devices
    list
    remove
    clear
    approve
    reject
    rotate
    revoke
  node
    run
    status
    install
    uninstall
    stop
    restart
  approvals
    get
    set
    allowlist add|remove
  exec-policy
    show
    preset
    set
  browser
    status
    start
    stop
    reset-profile
    tabs
    open
    focus
    close
    profiles
    create-profile
    delete-profile
    screenshot
    snapshot
    navigate
    resize
    click
    type
    press
    hover
    drag
    select
    upload
    fill
    dialog
    wait
    evaluate
    console
    pdf
  hooks
    list
    info
    check
    enable
    disable
    install
    update
  webhooks
    gmail setup|run
  proxy
    start
    run
    coverage
    sessions
    query
    blob
    purge
  pairing
    list
    approve
  qr
  clawbot
    qr
  docs
  dns
    setup
  tui
  chat (alias: tui --local)
  terminal (alias: tui --local)
像讲绘本

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:新本领插件s can add additional top-level 魔法口令s (for example openclaw voicecall).

原文小纸条

Plugins can add additional top-level commands (for example openclaw voicecall).

第 6 站

Chat slash 魔法口令s

这一节在讲一类能力是怎么工作的:它能做什么、不能做什么、适合在什么场景下调用。

这段在解决什么

这一节在讲一类能力是怎么工作的:它能做什么、不能做什么、适合在什么场景下调用。

为什么值得看

你理解的是能力边界,不只是功能名字。

真要动手时

如果这节里同时出现命令、配置和例子,优先先看例子,再回头看配置。

先别急着背术语

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Chat 小纸条消息s support /... 魔法口令s. See slash 魔法口令s. Highlights:。

像讲绘本

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Chat 小纸条消息s support /... 魔法口令s. See slash 魔法口令s.

原文小纸条

Chat messages support /... commands. See slash commands.

像讲绘本

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:Highlights:。

原文小纸条

Highlights:

像准备清单

这一串条目别硬背,把它当成“Chat slash commands”门口贴出来的几张便签就行。它们在提醒你先备好什么、别漏掉什么、哪里最容易走错:/status — quick diagnostics.、/trace — session-scoped 新本领插件 trace/debug…、/设置说明书 — persisted 设置说明书 changes.、/debug — runtime-only 设置说明书 overrides (me…。

原文小纸条
  • /status — quick diagnostics.
  • /trace — session-scoped plugin trace/debug lines.
  • /config — persisted config changes.
  • /debug — runtime-only config overrides (memory, not disk; requires commands.debug: true).

第 7 站

Usage tracking

这一节主要在解释“Usage tracking”到底是干什么的,以及你什么时候会遇到它。

这段在解决什么

这一节主要在解释“Usage tracking”到底是干什么的,以及你什么时候会遇到它。

为什么值得看

如果你是第一次接触 OpenClaw,这一节最值得看的不是术语本身,而是它背后的使用场景和限制。

真要动手时

真正动手时,先看它有没有默认值、有没有必须打开的选项、以及会不会影响安全边界。

先别急着背术语

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:openclaw status --usage and the Control UI surface provider usage/quota when OAuth/对话接口 credentials are available. Data…。

像讲绘本

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:openclaw status --usage and the Control UI surface provider usage/quota when OAuth/对话接口 credentials are available. Data…。

原文小纸条

openclaw status --usage and the Control UI surface provider usage/quota when OAuth/API credentials are available. Data comes directly from provider usage endpoints and is normalized to X% left. Providers with current usage windows: Anthropic, GitHub Copilot, Gemini CLI, OpenAI Codex, MiniMax, Xiaomi, and z.ai.

像讲绘本

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:See Usage tracking for details.

原文小纸条

See Usage tracking for details.

第 8 站

Related

这一节主要在解释“Related”到底是干什么的,以及你什么时候会遇到它。

这段在解决什么

这一节主要在解释“Related”到底是干什么的,以及你什么时候会遇到它。

为什么值得看

如果你是第一次接触 OpenClaw,这一节最值得看的不是术语本身,而是它背后的使用场景和限制。

真要动手时

真正动手时,先看它有没有默认值、有没有必须打开的选项、以及会不会影响安全边界。

先别急着背术语

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:---。

像准备清单

这一串条目别硬背,把它当成“Related”门口贴出来的几张便签就行。它们在提醒你先备好什么、别漏掉什么、哪里最容易走错:Slash 魔法口令s、设置说明书uration、Environment。

像讲绘本

如果把这一段摆成一个小场景,你会看到几样东西正在互相打招呼、拦路或者传东西。别急着记名词,先抓住它此刻到底在发生什么:---。

原文小纸条

---

AdSense 连接验证已经放在页面头部;广告单元等站点审批通过后再启用。

google-adsense-account: ca-pub-3833673520933536