VS Code for Salesforce (Installation guide)

                                 Steps to authenticate Salesforce Org with VS code

VS code is used to write programs(LWC, Aura components, Apex classes, Triggers) in our local machines and to deploy it to our Salesforce org.

Steps:

1. Install VS code. (https://code.visualstudio.com/download)

2. Download salesforce CLI (https://developer.salesforce.com/tools/sfdxcli)

3. Add salesforce CLI path to the environment variable in the local machine 

    a) open environment variable, click on New, and add the path.

    b) The path is taken from C:\Program Files\Salesforce CLI\bin


4. Test whether CLI is installed or not by command prompt.

    a) Open command prompt --> click on windows-->type cmd, command prompt pallet will open

        type sfdx or sfdx --version

        You can see version details are installed and the path is given correctly.

5. In VS code install the Salesforce extension pack (cntl+shift+x)

6. Open VS code, from pallet(ctrl+shift+p) type, create the project, enter any of your project names.

    after that ctrl+shift+p type sfdx:authorise an org select org(Test for Sandbox, Prod for Production)

    it will redirect to org cred, enter org cred... 


Yay!!!, there you successfully authorized SF org with VS code.






Comments

Popular posts from this blog

Salesforce Admin Notes

Top Asked Salesforce Admin Questions and Answers