1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 20:02:09 +02:00
tldr/pages/common/doctl-auth.md
Vitor Henrique 55a49c4ba1
pages*: remove "one or more" from description when superfluous (#12121)
* pages*: remove "one or more" from description when superfluous

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-01-25 10:58:11 +05:30

24 lines
542 B
Markdown

# doctl auth
> Authenticate `doctl` with 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`