DUNE-COMPLETION(1) Dune Manual DUNE-COMPLETION(1)

dune-completion - Generate shell completion scripts.

dune completion [OPTION]… SHELL

Generate a completion script in the specified shell for the dune binary. This will enable tab-completion of dune commands, subcommands, and flags.

The shell for which you want dune completion.

Print out a bash completion script. It should then be written to a file that will be sourced, for example in ~/.local/share/bash-completion/completions/dune. Alternatively, it can be sourced directly by adding this line to your .bashrc:
      eval "$(dune completion bash)"
Print out a zsh completion script. It should then be written to a file named _dune in a directory that will be autoloaded, for example in ~/.local/share/zsh/site-functions. Make sure that that directory is in your $fpath by adding this line to your .zshrc before `compinit`:
      fpath+=~/.local/share/zsh/site-functions
Print out a fish completion script. It should then be written to a file named dune.fish in a directory that fish autoloads completions from, for example ~/.config/fish/completions:
      dune completion fish > ~/.config/fish/completions/dune.fish
Print out a powershell completion script. It should then be written to a file that will be sourced, for example in $PROFILE.CurrentUserCurrentHost. Alternatively, it can be sourced directly by adding this line to your profile script:
      dune completion powershell | Out-String | Invoke-Expression

SHELL (required)
The shell for which you want dune completion. Possible values are bash, zsh, fish or powershell

Show this help in format FMT. The value FMT must be one of auto, pager, groff or plain. With auto, the format is pager or plain whenever the TERM env var is dumb or undefined.
Show version information.

dune completion exits with:

0
on success.
1
if an error happened.
130
if it was interrupted by a signal.

dune(1)

Dune 3.25.0