doctl auth
Authenticate doctl with one or more API tokens.
- 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}
doctl auth --help
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).