Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
toby-griffiths opened this issue Jul 24, 2023 · 0 comments
Open

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

toby-griffiths opened this issue Jul 24, 2023 · 0 comments
Labels

Comments

@toby-griffiths
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant