Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.