Created
May 24, 2018 23:24
-
-
Save tstachl/9f47edb427a3782f8751387baee9075b to your computer and use it in GitHub Desktop.
Create a new scratch org for SCMT development.
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
#!/bin/bash | |
echo "Creating a new scratch org" | |
sfdx force:org:create -f config/project-scratch-def.json -a $1 --setdefaultusername --durationdays 30 | |
sfdx scmt:audit:enable -u $1 | |
echo "Pushing source" | |
sfdx force:source:push -f -u $1 | |
sfdx force:user:permset:assign --permsetname SCMT_Audit -u $1 | |
sfdx force:data:record:update -s User -w "firstname='User'" -v "UserPermissionsKnowledgeUser=true" -u $1 | |
sfdx force:org:open -u $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment