CLI reference: sparkwing completion

CLI reference: sparkwing completion

Every sparkwing completion command, flag, and argument, generated from the CLI's own command registry. All command groups are indexed in cli-reference.md.

sparkwing completionSection anchor link

Emit a shell completion script (bash|zsh|fish)

Prints a completion script for the selected shell. Source it from your shell rc:

# bash source <(sparkwing completion --shell bash --output plain)

# zsh (add 'autoload -U compinit; compinit' once above) source <(sparkwing completion --shell zsh --output plain)

# fish sparkwing completion --shell fish --output plain | source

zsh and fish get per-item descriptions; bash is name-only because compgen lacks the facility.

FlagsSection anchor link

FlagDescription
-o, --output FORMATOutput format: pretty | json | plain (pretty on a terminal, json when piped)
--shell NAMEbash | zsh | fish (required)

ExamplesSection anchor link

# Wire completion for the current zsh session
source <(sparkwing completion --shell zsh --output plain)

# Install persistent completion for fish
sparkwing completion --shell fish --output plain > ~/.config/fish/completions/sparkwing.fish