Home
/
Command line
/
Reference
/
coder completion

coder completion

Generate completion script

Synopsis

To load completions:

Bash:

source <(coder completion bash)

To load completions for each session, execute once: Linux:

coder completion bash > /etc/bash_completion.d/coder

MacOS:

coder completion bash > /usr/local/etc/bash_completion.d/coder`

Zsh:

If shell completion is not already enabled in your workspace you will need to enable it. You can execute the following once:

echo "autoload -U compinit; compinit" >> ~/.zshrc

To load completions for each session, execute once:

coder completion zsh > "${fpath[1]}/_coder"

You will need to start a new shell for this setup to take effect.

Fish:

coder completion fish | source

To load completions for each session, execute once:

coder completion fish > ~/.config/fish/completions/coder.fish
coder completion [bash|zsh|fish|powershell]

Options

  -h, --help   help for completion

Options inherited from parent commands

  -v, --verbose   show verbose output

SEE ALSO

  • coder - coder provides a CLI for working with an existing Coder installation
See an opportunity to improve our docs? Make an edit.