Report this

What is the reason for this report?

doctl account get error

Posted on October 22, 2021

When I run through the doctl auth init and apply my access token, it works great and says validating token . . .OK

After the validation I run doctl account get and it gives me and error “access token is required”

I have recreated the token 3 times, it always authenticates just fine, when I run the account get command it fails each and ever time

suggestions / help please



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Found the answer - you need to specify the --context like you do with doctl suth init.

That worked just fine

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.