First, let’s start by cloning the Github repository containing some example code.

git clone []


Now, you can open the cloned project in VS Code by either running this command from the cloned directory

or manually by selecting File > Open and select your local folder.

VS Code has many shortcuts already created for Salesforce DX, to access them simply press CMD+Shift+P together and you will see them all, and can easily search for the one you are looking for.

Creating your first scratch org is super easy, by selecting the VS Code shortcut “SFDX:Create a Default Scratch Org”, or typing this command

sfdx force:org:create -f config/project-scratch-def.json -s -a

Note: -s sets this to be your default scratch org and -a is the alias name you want to give to this Scratch Org

Once your scratch org creation has completed, you can quickly push your newly cloned metadata to th…

Please click here to read the original article as posted on Medium.

We source the web to bring you best Salesforce articles for our reader’s convenience. If you want to have this article removed, please follow guidelines at Digital Millennium Copyright Act (DMCA)..