Prerequisites:
We need to have VS Code and Salesforce CLI installed on our system.
To download VS Code – https://code.visualstudio.com/download
To download Salesforce CLI – https://developer.salesforce.com/tools/sfdxcli
1.After VS Code is Installed, Salesforce Extension Pack in VS Code needs to be installed.
2.Now go to view –> command Pallete (Shortcut key – Cmd/Cntrl + Shift + P)
Now Select Create Project with Manifest command.
Select Standard.
4. Enter Project Name
5. After the project was created we have something like this.
- Now again go to view –> command Pallete (Shortcut key – Cmd/Cntrl + Shift + P)
- Select Authorize an Org.
8.Choose Org Type.
9.Give Org Alias name and click enter
10.A Salesforce login window will open. Enter the credential and then you will need to allow the
permission requested as below.
11.After the Org is authorized you can see it in the left-bottom corner
12.Now in order to pull all the metadata of the org, go to Package.xml and left-click and
select SFDX: Retrieve Source in Manifest from Org
Now we can see all the apex code, LWCs, Aura etc. in force-app
And also now we can deploy code from VS Code to Salesforce Org as well.
Hits: 0