doctl auth
Authenticate doctl with one or more API tokens. More information: https://docs.digitalocean.com/reference/doctl/reference/auth/.
-
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 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 --help
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.