completion(1) General Commands Manual completion(1)

completion - Print completion script for the given shell to stdout

completion [-h|--help] <SHELL>

Print completion script for the given shell to stdout.

This command allows you to generate completion script for a given shell. The script is printed to the standard output. If you want to write it to a file, just use unix redirection.

Print help (see a summary with '-h')
<SHELL>
Shell for which completion script should be generated for

[possible values: bash, elvish, fish, powershell, zsh]

completion