From c768a7c3bebc820c9345cfb287b07c0a0005afda Mon Sep 17 00:00:00 2001 From: 258204 <71364336+258204@users.noreply.github.com> Date: Thu, 17 Feb 2022 15:10:46 -0700 Subject: [PATCH] doctl-auth: add page (#7526) --- pages/common/doctl-auth.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/doctl-auth.md diff --git a/pages/common/doctl-auth.md b/pages/common/doctl-auth.md new file mode 100644 index 0000000000..3b241958fc --- /dev/null +++ b/pages/common/doctl-auth.md @@ -0,0 +1,24 @@ +# doctl auth + +> Authenticate doctl with one or more API tokens. +> More information: . + +- 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`