completion

openclaw completion

Generate shell completion scripts and optionally install them into your shell profile.

Usage

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

Options

  • -s, --shell <shell>: zsh, bash, powershell, fish (default: zsh)
  • -i, --install: install by adding a small source block to your shell profile
  • --write-state: write scripts to $OPENCLAW_STATE_DIR/completions (no stdout)
  • -y, --yes: skip confirmation prompts

Notes

  • Without --install or --write-state, the completion script is printed to stdout.
  • --install points your shell profile at the cached script.