doctl account get error

Posted October 22, 2021 73 views
System ToolsKubernetes

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

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.

Submit an Answer
1 answer

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

That worked just fine