Newer Version Available
Scratch Orgs and Package Development
Scratch orgs are a source-driven and disposable deployment of Salesforce code and
metadata, made for developers and automation. A scratch org is fully configurable, allowing
developers to emulate different Salesforce editions with different features and preferences.
| Available in: Lightning Experience |
| Available in: Developer,Enterprise, Performance, and Unlimited Editions |
You can use a scratch org to develop the app you want to package, and you can also create scratch orgs to test out your package. Scratch orgs also help with continuous integration (CI) processes to automate package development steps. For example, you could write a script that creates a package version, creates a scratch org, installs the package version in the scratch org, runs Apex tests, and emails the test results to the release manager. For more information on scratch orgs, see Scratch Orgs in the Salesforce DX Developer Guide.