DX Dev Hub Operations

Updated 4 months ago by Copado Solutions

Creating a Scratch Org

You can easily create a scratch org for different functions such as feature development, development of packages that contain namespaces, or user acceptance testing. To create a scratch org you can select the existing definition template, create a new one, or define it manually. By default, scratch orgs are empty.

To learn more about a scratch org definition, see the article Scratch Org Definition Details.

How to Create a Scratch Org Using an Existing Org Definition Template
  1. Select the Org Definition Template from the drop down-list. All options will be populated automatically. 
  2. Fill in the Org Name input.
  3. Click on Create Scratch Org.
How to Create a Scratch Org Defining the Org Definition Template Manually
  1. Fill in the Org Name input.
  2. Select the Country from the drop-down list to set the locale of the scratch org.
  3. Select the Language from the drop-down list to set the language of the scratch org.
  4. Specify the Features that you want to enable for the scratch org.
  5. Specify the Org Preference Types that you want to enable or disable for the scratch org.
  6. Check Include Sample Data to create a scratch org with sample data.
  7. If you want to save the template to use it in the future, fill in the Org Definition Template Name and click on Save as Template.
  8. Click on Create Scratch Org.

Managing Scratch Orgs

This is used to view all active or deleted scratch orgs as well as to open an active scratch org from the Dev Hub org. 

  • To log in to the scratch org click on Open Scratch Org in the Active Scratch Org list (the button appears if the expiration date of the scratch org is valid).
  • To manage the scratch org click on the Org Name in the Active Scratch Org list.


How did we do?