I am new to Salesforce DX and start using VS code and I have created three scratch org while working and now I want to switch between my scratch org, How can I do that?

enter image description here

example I want to switch to ebikes, what is the command or steps to make sure I am working on correct scratch org?

Thank in advance


Specify this as a setting:

sfdx force:config:set defaultusername=ebikes

You can use either the alias or the full user name (e.g. test-uqvz0ilj4tje@example.com).

You must be in a project directory for this to work.

The SFDX command SFDX: Set a default org will also work. You can select this from the command palette in VS Code (Ctrl/Cmd+Shift+P).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.