Easy way to Integrate Salesforce CLI with Visual Studio code

Aman Garg
3 min readAug 27, 2022

what is salesforce CLI?

Salesforce CLI is a command-line interface that simplifies development and build automation when working together with your Salesforce org. Use it to form and manages sandboxes environment, synchronize source to and from your sandboxes environment, creates and installs packages, and more.

Need to install two extensions in your visual studio code like that :

Salesforce CLI Integration

Salesforce Extension Pack

After that download SFDX CLI in local machine like that :

  1. If you are using Ubuntu then please download CLI using this link :

Extract this tar file and open the folder in terminal and write ./install then the CLI is installed.

2. If you are using Window then please download CLI using this link :

Select the cli version according your system requirement and then download and after install it.

And After Install the SFDX CLI we need to check the sfdx version in our system using this command in Windows or Ubuntu OS :

sfdx version

After That Create a New Project With Manifest using this command:

Step 1 :ctrl+shift + p then enter

Step 2: Enter the standard project

Step 3:Enter the project name here

and then save it.

Again, ctrl + shift + p

if you are login your production org then enter on the production link.

if you are login on your sandbox org then enter on the sandbox link.

For deploy your code from vs code to your sandbox org or your developement org using Deploy Source To Org like that:

For deploy your code from sandbox org or your developement org to your vs code using Retrieve Source from Org like that:

--

--

Aman Garg
Aman Garg

Written by Aman Garg

Sr. Executive - Training || 6x Salesforce Certified || 2x Copado Certified || Salesforce Mentor || Founder of Salesforce Learners

No responses yet