On this page

deno completions

Output shell completion script to standard output.

Command Jump to heading

deno completions [OPTIONS] <SHELL> - Generate completion script for the specified shell.

Synopsis Jump to heading

deno completions [-q|--quiet] <SHELL>

deno completions -h|--help

Description Jump to heading

The completions command generates a script to configure shell completion for Deno. Executing the script will configure the shell to provide completion for Deno commands and subcommands.

Arguments Jump to heading


Possible values: bash, fish, powershell, zsh, fig

Options Jump to heading

  • -q, --quiet

    Suppress diagnostic output

  • -h, --help

    Print help (see a summary with '-h')

Examples Jump to heading

  • Configure Bash shell completion
deno completions bash > /usr/local/etc/bash_completion.d/deno.bash
source /usr/local/etc/bash_completion.d/deno.bash
  • Configure PowerShell shell completion
deno completions powershell | Out-String | Invoke-Expression
  • Configure zsh shell completion

First add the following to your .zshrc file:

fpath=(~/.zsh/completion $fpath)
autoload -U compinit

Then run the following commands:

deno completions zsh > _deno
mv _deno ~/.zsh/completion/_deno
autoload -U compinit && compinit
  • Configure fish shell completion
deno completions fish > completions.fish
chmod +x ./completions.fish