Configuring a scratch Org definition JSON

The configuration in the project-scratch-def.json file defines the structure of the scratch Org. Let's look at the following sample project-scratch-def.json file:

{  "OrgName": "Acme",  "country": "US",  "edition": "Enterprise",  "features": "MultiCurrency;AuthorApex",  "OrgPreferences": {    "enabled": ["S1DesktopEnabled", "ChatterEnabled"],    "disabled": ["SelfSetPasswordInApi"]  }}

In the preceding file, we define editions and features we want to enable. It also shows that the scratch Org that we create here will be of Enterprise edition with Salesforce features such as MultiCurrency and AuthorApex enabled. Also, the Salesforce scratch organization will be created, which will have chatter and Salesforce1 ...

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.