Opening the scratch Org

Before opening the scratch Org, you can set the default scratch Org for source push and pull using the following command:

sfdx force:config:set defaultusername=<username>

To open a scratch Org, use the command shown here:

sfdx force:org:open -u <username/alias>

The following is a screenshot of the command line when the Org is opened:

Get Learning Salesforce Lightning Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.