docs/cli/completion.md
mise completionmise completion [FLAGS] [SHELL]complete, completionssrc/cli/completion.rsGenerate shell completions
[SHELL]Shell type to generate completions for
Choices:
bashfishpowershellzshpwsh--include-bash-completion-libRetained for compatibility with older completion generators.
usage-rs's built-in bash script is self-contained, so this is now a no-op.
--installEffect: modifies state
Install the script where this shell looks for it, instead of printing it
Writes the script file and nothing else: no shell rc file and no PowerShell profile is
edited. Where a shell needs a one-time line of its own — zsh's fpath+=, PowerShell's
dot-source — it is printed for you to add.
--forceEffect: modifies state
Replace a file at the target path that mise did not write
Examples:
# put it where the shell looks, and print any one-time line it still needs
$ mise completion zsh --install
# or choose the path yourself
$ mise completion bash > ~/.local/share/bash-completion/completions/mise
$ mise completion zsh > /usr/local/share/zsh/site-functions/_mise
$ mise completion fish > ~/.config/fish/completions/mise.fish
$ mise completion powershell >> $PROFILE