completion
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>:zsh、bash、powershell、fish(默认zsh)-i, --install:写入一段 source 配置到你的 shell profile--write-state:将脚本写到$OPENCLAW_STATE_DIR/completions(不打印到 stdout)-y, --yes:跳过确认提示
说明
- 如果不使用
--install或--write-state,脚本会直接打印到 stdout。 --install会让你的 shell profile 引用缓存脚本。