Shell completions
Automatic shell completions are critical to good user experience for CLI tools. Starkli supports shell completions for the following shells:
- bash
- elvish
- fish
- powershell
- zsh
When installing with starkliup
, shell completions are automatically set up for the following shells:
- bash
- fish
- zsh
and you don't need to configure them yourself.
Otherwise, you can generate shell completion files by running the following command:
starkli completions <SHELL>
which prints the content of the completion file to the standard output. For example, to generate the completion file for fish:
starkli completions fish
You can pipe the output into a completion file and place it at the folder expected by your shell. You might need to restart your shell session for the changes to take effect.