Create a Salesforce DX Project

A Salesforce DX project has a specific structure for your org’s metadata (code and configuration), templates, sample data, and tests.

Store these items in a version control system (VCS) to bring consistency to your team’s development processes. Retrieve the contents of your team’s repository when you’re ready to develop a new feature.

Create a DX project in the directory you want your Salesforce Functions project to be located.

1sf project generate --name MyFunctionProject
  • --name (required) name of the generated project

In VS Code from the Command Palette, choose SFDX: Create Project. Select Standard standard project template (default) and enter a project name.

Tip

Salesforce CLI creates the project directory structure. The project contains base project configuration and scratch definition files, and directories for your tests and sample data sets.

For more information, see Create a Salesforce DX Project.

Product Retirement Announcement

Salesforce Functions is no longer available for purchase or renewal. To preserve the capabilities that Salesforce Functions provided to your org, deploy an alternative solution before your existing order term ends. See Salesforce Functions Retirement for more information on migrating your functions. Contact your Salesforce Account Executive for more information on Heroku.