docs / guides/shell-completionsspring-cli

Shell completions ​

spring-cli completion prints a completion script to standard output. Redirect it into the completion directory for your shell.

Bash ​

bash
mkdir -p ~/.local/share/bash-completion/completions
spring-cli completion bash > ~/.local/share/bash-completion/completions/spring-cli

Open a new terminal or reload your Bash completion setup.

Zsh ​

bash
mkdir -p ~/.zsh/completions
spring-cli completion zsh > ~/.zsh/completions/_spring-cli

Add the completion directory and initialize completion in ~/.zshrc if you have not already:

zsh
fpath+=(~/.zsh/completions)
autoload -Uz compinit && compinit

Fish ​

fish
mkdir -p ~/.config/fish/completions
spring-cli completion fish > ~/.config/fish/completions/spring-cli.fish

Fish loads files from this directory automatically. Completion scripts include top-level commands, common flags, and known command actions and component names.