mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 00:50:01 +00:00
Update cheatsheets
This commit is contained in:
29
doctl-auth
Normal file
29
doctl-auth
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user