Project Setup

A Salesforce DX project provides a project structure for your org’s metadata (code and configuration), org templates, sample data, and all your team’s tests. To bring consistency to your team’s development processes, store these items in a source control system (SCS). Retrieve the contents of your team’s repository when you’re ready to develop a new feature.

What makes a project a Salesforce DX project? It includes an sfdx-project.json file, which defines the project’s configuration. This .json file includes connected app information for Salesforce CLI, in which directories project files are located, packaging directory structure for 2GP packages, and which API version you want to use, if not the latest.

You have different options to create a Salesforce DX project depending on how you want to begin. You can use your preferred SCS. Most of our examples use Git.

Use the Sample Repository on GitHub Explore the features of Salesforce DX using one of our sample repos and your own SCS and toolset.
Create a Salesforce DX Project from Existing Source Start with an existing Salesforce app to create a Salesforce DX project.
Create a Salesforce DX Project Create an app on the Salesforce Platform using a Salesforce DX project.