commands.sh

doctl auth

all

Authenticate `doctl` with API tokens.

More info →

Options (2)

boolean

List authentication contexts (API tokens)

Example: doctl auth {{[ls|list]}}
-h, --helpboolean

Show available commands

Example: doctl auth {{[-h|--help]}}

Examples (5)

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

doctl auth init --context token_label

List authentication contexts (API tokens)

doctl auth [ls|list]

Switch contexts (API tokens)

doctl auth switch --context token_label

Remove a stored authentication context (API token)

doctl auth remove --context token_label

Show available commands

doctl auth [-h|--help]
made by @shridhargupta | data from tldr-pages