Skip to content

Repository files navigation

Salesforce DX Project

Salesforce DX is a development approach that brings source-driven development, team collaboration, and continuous integration to the Salesforce Platform. Instead of working directly in an org through a web browser, you work with metadata as source files in a local DX project, track changes in version control, and deploy through automated processes.

This project template gets you started with the tools and structure you need to build Salesforce applications using source control, scratch orgs, and the Salesforce CLI.

Prerequisites

Before you start, make sure you have:

Project Structure

Your DX project follows this structure:

  • force-app/main/default/ - Your metadata source files live in this default package directory. You can configure additional package directories in the sfdx-project.json file.
  • config/ - Scratch org definitions and project settings
  • scripts/ - Automation scripts for common tasks
  • sfdx-project.json - Project manifest that defines package directories, namespace, API version, and other project-level settings

See Salesforce DX Project Configuration.

Get Started

Ready to start developing? The Get Started with Salesforce DX guide walks you through your first project, from creating a scratch org to creating a simple Apex class or LWC to deploying your code to a sandbox.

Common Salesforce CLI Commands

Here are common CLI commands that you'll use the most:

  • sf org login web: Authorize an org
  • sf org open: Open your org in a browser
  • sf org create scratch: Create a scratch org
  • sf project deploy start: Deploy metadata to your org
  • sf project retrieve start: Retrieve metadata from your org
  • sf template generate <artifact>: Scaffold new components, such as Apex classes and triggers, LWC components, Lightning apps, and more
  • sf apex <command>: Run Apex tests, run anonymous Apex blocks, and view logs
  • sf data <command>: Work with test data
  • sf alias <command>: Manage org aliases
  • sf config <command>: Configure CLI settings

Use Agentforce Vibes to Build Lightning Apps

Transform your ideas into custom Lightning apps that extend CRM workflows directly in Lightning Experience. Through natural conversations with Agentforce Vibes, implement custom objects and fields, complex business logic, and dynamic UI components. See Build a Lightning App Using Agentforce Vibes.

Additional Resources

About

A full-stack Salesforce portfolio project: schema design, Apex, LWC, Experience Cloud, integrations and CI/CD — built around immigration case management. Synthetic data only.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages