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
Mehdi BelcadiMehdi Belcadi 

Salesforce CLI installation issue ( Windows )

After Installing Salesforce CLI in Windows 10 I am enable to run : sfdx force:auth:web:login
I get an error message Application not found 
https://imgur.com/a/IMTbDwB


 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Mehdi,

Greetings to you!

First, you need to Enable Dev Hub in Your Org: https://developer.salesforce.com/docs/atlas.en-us.216.0.sfdx_setup.meta/sfdx_setup/sfdx_setup_enable_devhub.htm

Then, Install the Command Line Interface (CLI):
Windows 32 -bit: https://sfdc.co/sfdx_cli_win
Windows 64-bit: https://sfdc.co/sfdx_cli_win64

Log In to the Dev Hub:
1. To authorize the Dev Hub, use the web login flow:
sfdx force:auth:web:login -d -a DevHub

2. Log in with your credentials.

Please refer to the below links which might help you further with the above requirement.

https://trailhead.salesforce.com/en/content/learn/modules/sfdx_app_dev/sfdx_app_dev_setup_dx

https://resources.docs.salesforce.com/216/latest/en-us/sfdc/pdf/sfdx_setup.pdf

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Mehdi BelcadiMehdi Belcadi
Thank you for the reply . 
It turned out that my default browser on windows was set on 'null' so when I executed the command to open the org the command line could not open the browser. The problem was not related to VisualCode or CLI but to my windows default browser configuration.
Pravudatta MohantyPravudatta Mohanty
in npm\node_modules\sfdx-cli\bin folder, rename run.cmd to sfdx.cmd