Skip to content

completion:install

Terminal window
rai completion:install [OPTIONS]

Install completion for your shell (writes script and updates rc).

 What this does:

  1. Writes the completion script under ~/.rai/completions/ (or ~/.config/fish/completions/ for fish)
  2. Appends a source ... line to your shell’s rc file (idempotent — safe to re-run)

Re-run with —force to refresh the script after upgrading rai.

OptionTypeDescription
--shellchoiceTarget shell. Defaults to the shell detected from $SHELL.
--forceBooleanOverwrite an existing completion script if present. Default: False.