Tuesday, May 28, 2019

Useful commands for SFDX in Visual Studio Code


  1. To pull changed source from the scratch org to the project: 
    • sfdx force:source:pull
  2. To pull source to the project if a conflict has been detected: 
    • sfdx force:source:pull --forceoverwrite
  3. To push changed source to a scratch org that’s not the default, you can indicate it by its username or alias:
    • sfdx force:source:push --targetusername test-b4agup43oxmu@example.com
    • sfdx force:source:push -u test-b4agup43oxmu@example.com
    • sfdx force:source:push -u MyGroovyScratchOrg

No comments:

Post a Comment