Files
openclaw/docs/cli/completion.md
T
Josh Lehman 43ea501f38 refactor: move session/transcript runtime state to SQLite
Migrate OpenClaw session, transcript, and runtime state off per-file
.jsonl/JSON storage onto the SQLite state and agent databases, brought up to
date with current main. Channel plugins persist via the plugin-state SDK
keyed-store seam rather than the raw DB; storage-heavy plugins keep their own
SQLite stores via SDK path helpers.
2026-05-31 09:25:49 -07:00

1.1 KiB

summary, read_when, title
summary read_when title
CLI reference for `openclaw completion` (generate/install shell completion scripts)
You want shell completions for zsh/bash/fish/PowerShell
You need to install shell completion profile hooks
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

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
  • -y, --yes: skip install confirmation prompts

Notes

  • --install writes a small "OpenClaw Completion" block into your shell profile that generates completions from the CLI.
  • Without --install, the command prints the script to stdout.
  • Completion generation eagerly loads command trees so nested subcommands are included.
  • OpenClaw does not write shell completion cache files under state.