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
Vishnu SanthoshVishnu Santhosh 

How to Authorize Multiple Orgs in VSCode?

I already have a Sandbox org authorized and set as Default Org.

I need to work on another project and retrieve data from Another org. For doing the same, I created a project with manifest and then ran 'SFDX:Authorize an Org' command.

When i run the same, a notification pops up saying  'SFDX:Authorize an Org Successfully ran' and also, in the Ouput tab, I could see the cli commands and also the status at the end of the line saying 'ended with exit code 0'.

I am expecting a browser to open the login page after the execution of above command, but its not happening.

Could you tell me what am I doing wrong / what I need to do here?

Thank you

AbhinavAbhinav (Salesforce Developers) 
Hi Vishnu,

Just wanted to check is it opening browser for other already authorized org?
for command such as. sfdx force:org:open -u yourUserNAme   

Because sometime these get blocked for different reason different antivirus protection etc.

Thanks!
Vishnu SanthoshVishnu Santhosh

Hi Abhinav,

Thank you for your reply.

The command you had mentioned is opening up the browser and directing into the authorized org.

AbhinavAbhinav (Salesforce Developers) 
Okay can you try changing your default browser once and check if that works as suggested on below discussion .

https://github.com/forcedotcom/cli/issues/371

https://github.com/forcedotcom/salesforcedx-vscode/issues/1654

Thanks!