Last active
April 29, 2022 18:37
-
-
Save mhamzas/76c77883ec99a852e1db8b08f64407ad to your computer and use it in GitHub Desktop.
Scratch org Config Examples - For More: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file_config_values.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// example of how to configure SecuritySettings in your scratch org. | |
{ | |
"orgName": "Acme", | |
"edition": "Enterprise", | |
"features": [], | |
"settings": { | |
"mobileSettings": { | |
"enableS1EncryptedStoragePref2": true | |
}, | |
"securitySettings": { | |
"sessionSettings":{ | |
"sessionTimeout": "TwelveHours" | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"orgName": "Acme", | |
"edition": "Enterprise", | |
"features": ["Communities", "ServiceCloud", "Chatbot"], | |
"settings": { | |
"communitiesSettings": { | |
"enableNetworksEnabled": true | |
}, | |
"lightningExperienceSettings": { | |
"enableS1DesktopEnabled": true | |
}, | |
"mobileSettings": { | |
"enableS1EncryptedStoragePref2": true | |
}, | |
"omniChannelSettings": { | |
"enableOmniChannel": true | |
}, | |
"caseSettings": { | |
"systemUserEmail": "support@acme.com" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a Scratch Org for a Specific Release | |
{ | |
"orgName": "Dreamhouse", | |
"edition": "Developer", | |
"release": "Preview", | |
"settings": { | |
"mobileSettings": { | |
"enableS1EncryptedStoragePref2": true | |
} | |
} | |
} | |
// sfdx force:org:create -f config/project-scratch-def.json -a PreviewOrg -v DevHub release=Preview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sfdx force:user:password:generate --targetusername <username> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"orgName": "Demo company", | |
"edition": "Developer", | |
"features": ["EnableSetPasswordInApi","PersonAccounts"], | |
"settings": { | |
"lightningExperienceSettings": { | |
"enableS1DesktopEnabled": true | |
}, | |
"mobileSettings": { | |
"enableS1EncryptedStoragePref2": false | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"orgName": "FSC Scratch", | |
"edition": "Partner Developer", | |
"namespace":"NEDNameSpace", | |
"features": ["Communities", | |
"ContactsToMultipleAccounts", | |
"PersonAccounts", | |
"IndustriesActionPlan", | |
"DocumentChecklist", | |
"FinancialServicesUser:10", | |
"FinancialServicesCommunityUser:10", | |
"FlowSites"], | |
"settings": { | |
"lightningExperienceSettings": { | |
"enableS1DesktopEnabled": true | |
}, | |
"securitySettings": { | |
"passwordPolicies": {} | |
}, | |
"mobileSettings": { | |
"enableS1EncryptedStoragePref2": false | |
}, | |
"communitiesSettings": { | |
"enableNetworksEnabled": true | |
} | |
}, | |
"objectSettings": { | |
"account": { | |
"defaultRecordType": "PersonAccount" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment