doctl icon indicating copy to clipboard operation
doctl copied to clipboard

--access-token flag ignored when also providing --context flag

Open toby-griffiths opened this issue 2 years ago • 0 comments

Describe the Issue:

I am attempting to create an auth context with a custom name, with a token from my env vars.

If I use…

$ doctl auth init --access-token "${DIGITALOCEAN_TOKEN}"

… it works just fine, but if I use…

$ doctl auth init --access-token "${DIGITALOCEAN_TOKEN}" --context=another

if prompts for my access token.

Environment:

  • doctl version: doctl version 1.97.1-release
  • OS: MacOS 13.2.1 (22D68)
  • Installation method: Homebrew

Additional Details:

No trace to provide as it's not making any requests

toby-griffiths avatar Jul 24 '23 12:07 toby-griffiths