docs / guides/shell-completionsspringboot-cli

Shell completions ​

springboot-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
springboot-cli completion bash > ~/.local/share/bash-completion/completions/springboot-cli

Open a new terminal or reload your Bash completion setup.

Zsh ​

bash
mkdir -p ~/.zsh/completions
springboot-cli completion zsh > ~/.zsh/completions/_springboot-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
springboot-cli completion fish > ~/.config/fish/completions/springboot-cli.fish

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