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.