Create Scratch Orgs More Easily Using an Org’s Shape (Beta)
Features, settings, limits, and licenses determine what we refer to as an org’s shape.
We know it’s not easy to build a scratch org definition that mirrors the features and settings in
your production org. With Org Shape for Scratch Orgs, you can leave building the scratch org
definition to us. After you capture the org’s shape, you can spin up scratch orgs based on it with
minor assembly required.
How: Enable Org Shape for Scratch Orgs in the org whose shape you want to capture (source org).
- As an admin, log in to the source org.
- From Setup, enter Org Shape in the Quick Find box, then select Org Shape.
- Click Enable Org Shape for Scratch Orgs (Beta).
- If your source org is different from your Dev Hub org, enter the Dev Hub org ID to the list of allowed Dev Hub orgs.
- Create a scratch org shape for the source org.
- Create a scratch org definition file that contains the 15-character source org ID, the only
required
option.
{ "orgName": "Salesforce", "sourceOrg": "00DB1230400Ifx5" }
- Create a scratch org.