completion
openclaw completion
Section titled “openclaw completion”生成 Shell 自動補腳本,並可選擇將其安裝至您的 Shell 設定檔中。
openclaw completionopenclaw completion --shell zshopenclaw completion --installopenclaw completion --shell fish --installopenclaw completion --write-stateopenclaw completion --shell bash --write-state-s, --shell <shell>: shell 目標 (zsh,bash,powershell,fish; 預設:zsh)-i, --install: 透過新增一行 source 指令至您的 Shell 設定檔來安裝自動補完--write-state: 將自動補完腳本寫入$OPENCLAW_STATE_DIR/completions而不列印至標準輸出-y, --yes: 略過安裝確認提示
--install會在您的 Shell 設定檔中寫入一個小型的「OpenClaw Completion」區塊,並將其指向快取的腳本。- 若沒有使用
--install或--write-state,此指令會將腳本列印至標準輸出。 - 生成自動補完時會積極載入指令樹,以包含巢狀子指令。