Files
tldr/pages.zh/common/doctl-auth.md

24 lines
552 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# doctl 认证
> 使用 API 令牌对 `doctl` 进行认证。
> 更多信息请访问:<https://docs.digitalocean.com/reference/doctl/reference/auth/>.
- 打开提示以输入 API 令牌并标记其上下文:
`doctl auth init --context {{token_label}}`
- 列出认证上下文API 令牌):
`doctl auth list`
- 切换上下文API 令牌):
`doctl auth switch --context {{token_label}}`
- 移除存储的认证上下文API 令牌):
`doctl auth remove --context {{token_label}}`
- 显示可用命令:
`doctl auth --help`