Skip to content

Instantly share code, notes, and snippets.

@tstachl
Created May 24, 2018 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tstachl/9f47edb427a3782f8751387baee9075b to your computer and use it in GitHub Desktop.
Save tstachl/9f47edb427a3782f8751387baee9075b to your computer and use it in GitHub Desktop.
Create a new scratch org for SCMT development.
#!/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