Hi @SRFeesha and thank you for sharing the solution. Could you specify what didn’t work with the netlify login command? Another workaround could be to run netlify logout then netlify login.
Thanks @vitalikda, the netlify logout command is a hidden command. I should have made that clearer in my initial post. We’re working on making it public though:
Hey jen, Yesterday I just signout from Netlify dashboard and today I wasn’t able to login again (Auth provider Github). So I just reset my password and then this problem occur. I have tried @vitalikda 's solution but it doesn’t work on my end.
For me, nothing of that sort worked. I get a crash of the Netlify-CLI the moment I try to invoke anything. I did the uninstall, delete the Netlify config, reinstall thing, but every time I launch Netlify with almost any command except help or plugins, I get an error as documented here. For me, Netlify-CLI is currently complete inoperational.
Thank you for letting us know! That is not the experience we would like you to have.
I see you have filed an issue for this, thank you for doing that. Please keep an eye on that issue as we will update you there as soon as we have some news.
I had the same issue @Shahzad6077: I was forced to logout of the dashboard and reset my password, upon trying to use the cli commands after resetting pass I received ‘Failed retrieving user account: Unauthorized. Double-check your login status with ‘netlify status’ or contact support with details of your error.’ message which could be expected.
Following the contents of this thread I have tried all 3 proposed solutions:
Updating /.netlify/config.json manually with a new token obtained in the UI
Removing the globally installed CLI package, removing /.netlify and it’s contents entirely and re-installing the cli and running netlify login
Running the hidden netlify logout command and then trying to run netlify login
I still see the same error for every single netlify command, including the hidden netlify logout command.
Are there any other proposed workarounds that can be tried? Currently the cli is not available to me because of this.