跳轉到主要內容

Documentation Index

Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt

Use this file to discover all available pages before exploring further.

openclaw completion

產生 shell 補全指令碼,並可選擇安裝到你的 shell 設定檔。

使用方式

openclaw completion
openclaw completion --shell zsh
openclaw completion --install
openclaw completion --shell fish --install
openclaw completion --write-state
openclaw completion --shell bash --write-state

選項

  • -s, --shell <shell>:shell 目標(zshbashpowershellfish;預設:zsh
  • -i, --install:透過在你的 shell 設定檔加入 source 行來安裝補全
  • --write-state:將補全指令碼寫入 $OPENCLAW_STATE_DIR/completions,不輸出到標準輸出
  • -y, --yes:略過安裝確認提示

注意事項

  • --install 會將一個小型的「OpenClaw 補全」區塊寫入你的 shell 設定檔,並指向快取的指令碼。
  • 若未使用 --install--write-state,此命令會將指令碼輸出到標準輸出。
  • 補全產生會預先載入命令樹,因此會包含巢狀子命令。

相關