deno completions

Command line usage

deno completions [OPTIONS] [shell]

Output shell completion script to standard output.

deno completions bash > /usr/local/etc/bash_completion.d/deno.bash
source /usr/local/etc/bash_completion.d/deno.bash

Examples

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
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

© 2018–2024 the Deno authors
Licensed under the MIT License.
https://docs.deno.com/runtime/reference/cli/completions