LinuxCommandLibrary

doctl-auth

Authenticate doctl with one or more API tokens.

TLDR

Open a prompt to enter an API token and label its context

$ doctl auth init --context [token_label]
copy


List authentication contexts (API tokens)
$ doctl auth list
copy


Switch contexts (API tokens)
$ doctl auth switch --context [token_label]
copy


Remove a stored authentication context (API token)
$ doctl auth remove --context [token_label]
copy


Show available commands
$ doctl auth --help
copy

Copied to clipboard