function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Narsimha RaoNarsimha Rao 

Salesforce CLI: auth web login - browser doesn't open the login page

I have been trying to login to DevHub using CLI but weirdly, when I use the force:auth command, the browser doesn't even open. I am very new to using the CLI and please let me know if I'm missing something.

Thanks in advance!
Have you used this next command ?
sfdx force:auth:web:login -r -a YourAlias
It should launch your default browser
sudhir tatrajusudhir tatraju
Changing the default browser to some other browser worked for me. my default browser is Chrome which is blocking sfdx to open page in the backend so I changed the default browser to Microsoft Edge inbuilt browser and rerunning command opened edge browser automatically! Hurray :)