docs/cli/completion.md
openclaw completionGenerate shell completion scripts and optionally install them into your shell profile.
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 target (zsh, bash, powershell, fish; default: zsh)-i, --install: install completion by adding a source line to your shell profile--write-state: write completion script(s) to $OPENCLAW_STATE_DIR/completions without printing to stdout-y, --yes: skip install confirmation prompts--install writes a small "OpenClaw Completion" block into your shell profile and points it at the cached script.--install or --write-state, the command prints the script to stdout.