Advertisement
Guest User

Untitled

a guest
Sep 28th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. export ORG_ALIAS='DummyScratchOrg'
  2. export PERMISSION_SET='DummyPermSet'
  3. export IMPORT_PLAN='Dummy-plan.json'
  4.  
  5. # list orgs
  6. sfdx force:org:list
  7.  
  8. # open org
  9. sfdx force:org:open -u $ORG_ALIAS
  10.  
  11. # create scratch org
  12. sfdx force:org:create -f config/project-scratch-def.json -a $ORG_ALIAS
  13.  
  14. # push project to scratch org
  15. sfdx force:source:push -u $ORG_ALIAS
  16.  
  17. # update local project
  18. sfdx force:source:pull -u $ORG_ALIAS
  19.  
  20. # add permission set to SFDX user
  21. sfdx force:user:permset:assign -n $PERMISSION_SET -u $ORG_ALIAS
  22.  
  23. # generate password
  24. sfdx force:user:password:generate -u $ORG_ALIAS
  25.  
  26. # import data using an exported plan
  27. sfdx force:data:tree:import -p $IMPORT_PLAN -u $ORG_ALIAS
  28.  
  29. # delete scratch org
  30. sfdx force:org:delete -u $ORG_ALIAS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement