doctl auth switch

Go to Navigation

Usage

doctl auth switch [flags]

Description

This command allows you to switch between accounts with authentication contexts you’ve already created.

To see a list of available authentication contexts, call doctl auth list.

For details on creating an authentication context, see the help for doctl auth init.

Flags

OptionDescription
--help, -hHelp for this command
CommandDescription
doctl authDisplay commands for authenticating doctl with an account

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