/ > reference/ > doctl > reference > completion

doctl completion

Go to Navigation

Usage

doctl completion [flags]

Description

doctl completion helps you configure your terminal’s shell so that doctl commands autocomplete when you press the TAB key.

Supported shells:

  • bash
  • zsh
  • fish

Flags

OptionDescription
--help, -hHelp for this command
CommandDescription
doctldoctl is a command line interface (CLI) for the DigitalOcean API.
doctl completion bashGenerate completion code for bash
doctl completion fishGenerate completion code for fish
doctl completion zshGenerate completion code for zsh

Global Flags

OptionDescription
--access-token, -tAPI V2 access token
--api-url, -uOverride default API endpoint
--config, -cSpecify a custom config file
Default:
  • macOS: ${HOME}/Library/Application Support/doctl/config.yaml
  • Linux: ${XDG_CONFIG_HOME}/doctl/config.yaml
  • Windows: %APPDATA%\doctl\config.yaml
--contextSpecify a custom authentication context name
--output, -oDesired output format [text|json]
Default: text
--traceShow a log of network activity while performing a command
Default: false
--verbose, -vEnable verbose output
Default: false