Salesforce DX (Developer Experience) is a set of tools and features provided by Salesforce to enhance the development and deployment experience on the Salesforce platform. The core components of Salesforce DX, including the Salesforce CLI, Developer Hub, Packaging, and Scratch orgs for devs, are available at no additional cost. It promotes a source-driven development approach where the source code and configuration metadata are stored in version control systems (such as Git) rather than directly in Salesforce orgs.





Table Content:

  • Operating System Requirement
  • Steps To Install Salesforce CLI
  • Steps To Install IDE and Plugins
  • Create a Project using CLI Commands

Operating System Requirement:

  • Windows: Windows 10 or later (64-bit)
  • macOS: macOS 10.15 (Catalina) or later
  • Linux: Ubuntu 18.04 LTS or later (64-bit), CentOS 7 (64-bit), or RHEL 7 (64-bit)

Steps To Install Salesforce CLI:

Salesforce CLI is the command-line interface for interacting with Salesforce DX. It provides us 
with different types of commands. By using these commands, we can interact with our Salesforce Environment such as Scratch org, Sandbox, and Production Environment.



Validate Salesforce CLI Installation:

  • Open a terminal or command prompt 
  • Run the following Command

sfdx --version


The Salesforce CLI version number is shown below. It means Salesforce CLI is installed correctly.




Steps to Install IDE and Plugin:

Visual Studio Code is recommended IDE for Salesforce Dx.  

Steps to Install Plugins or Extension Pack:

  • Open Visual Studio Code IDE on your computer 
  • On the Left toolbar Section click on the "Extension Button" Option
  • Search for the "Salesforce CLI Integration" Extension and install it




 

Steps to Verify Extension Pack:

  • Open Visual Studio Code IDE on your computer 
  • Click on the View menu option that appears on the Toolbar
  • Click on Command Palette Option. 
      

  • On Command Palette Search Box search with the "SFDX"  keyword. If we can search SFDX commands. It means we are successfully installed Plugin

 



Create Project Using CLI Commands:

  •   Click on Command Palette Option that appears Under the View menu
  •   Command Palette search box search with the "SFDX: Create Project" keyword
  •   Select the "SFDX: Create Project" Option.
  •   Provide a project name and select a location to save the project.