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 :
- 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: