mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 08:55:33 +02:00
doctl-auth: add page (#7526)
This commit is contained in:
parent
6b23c4556f
commit
c768a7c3be
1 changed files with 24 additions and 0 deletions
24
pages/common/doctl-auth.md
Normal file
24
pages/common/doctl-auth.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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`
|
Loading…
Add table
Reference in a new issue