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-cliOpen a new terminal or reload your Bash completion setup.
Zsh
bash
mkdir -p ~/.zsh/completions
spring-cli completion zsh > ~/.zsh/completions/_spring-cliAdd the completion directory and initialize completion in ~/.zshrc if you have not already:
zsh
fpath+=(~/.zsh/completions)
autoload -Uz compinit && compinitFish
fish
mkdir -p ~/.config/fish/completions
spring-cli completion fish > ~/.config/fish/completions/spring-cli.fishFish loads files from this directory automatically. Completion scripts include top-level commands, common flags, and known command actions and component names.