Files
bot/docs/cli/completion.md
zeekay 4bdc9ee3e4 chore: rebrand openclaw → hanzo-bot for bridge merge
Comprehensive rename of all openclaw references to hanzo-bot equivalents:
- Package: openclaw → @hanzo/bot
- Binary: openclaw → hanzo-bot
- Types: OpenClaw* → Bot*
- Env vars: OPENCLAW_* → BOT_*
- Android: ai.openclaw.android → ai.hanzo.bot.android
- iOS/macOS: ai.openclaw.* → ai.hanzo.*
- Swift modules: OpenClaw* → Bot*
- Plugins: openclaw.plugin.json → bot.plugin.json
- Paths: .openclaw/ → .hanzo/bot/
- URLs: github.com/openclaw → github.com/hanzoai
2026-02-26 22:36:01 -08:00

1.2 KiB

summary, read_when, title
summary read_when title
CLI reference for `hanzo-bot completion` (generate/install shell completion scripts)
You want shell completions for zsh/bash/fish/PowerShell
You need to cache completion scripts under Bot state
completion

hanzo-bot completion

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

Usage

hanzo-bot completion
hanzo-bot completion --shell zsh
hanzo-bot completion --install
hanzo-bot completion --shell fish --install
hanzo-bot completion --write-state
hanzo-bot completion --shell bash --write-state

Options

  • -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 $BOT_STATE_DIR/completions without printing to stdout
  • -y, --yes: skip install confirmation prompts

Notes

  • --install writes a small "Bot Completion" block into your shell profile and points it at the cached script.
  • Without --install or --write-state, the command prints the script to stdout.
  • Completion generation eagerly loads command trees so nested subcommands are included.