doctl auth
Authenticate
doctlwith 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
- List authentication contexts (API tokens):
doctl auth
- Switch contexts (API tokens):
doctl auth switch --context
- Remove a stored authentication context (API token):
doctl auth remove --context
- Show available commands:
doctl auth
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
