arrow_backBack to Chapter

Module: Create SFDX Project

Interactive Module
infoYou're viewing as a guest — progress won't be saved. Sign in to track your progress.

Create SFDX Project

Learn what is SFDX project is, why we need it and how to create one.

The Foundation of Agentic Development

In the world of Salesforce development, an SFDX Project is a local directory structure that represents your Salesforce metadata (like Apex classes, Lightning Web Components, and Flows) in a file-based format. For a Solution Engineer, moving from the 'Setup' menu to a local project is the first step toward unlocking Agentic Engineering. Without a local project, Cursor—your AI-powered IDE—cannot see your code, understand your data model, or provide contextually aware suggestions.

Why SEs Need Local Projects

While declarative tools in the browser are powerful, they are siloed. By creating an SFDX project, you enable a 'source-driven' workflow. This is crucial for Cursor because:

  • Contextual Awareness: Cursor indexes your local files to understand how your specific Salesforce instance is built.
  • Version Control: It allows you to track changes and roll back experiments easily using Git.
  • AI Scoping: You can point Cursor's agent specifically at your force-app folder to generate new features or debug existing ones without manual copy-pasting.

The core of every project is the sfdx-project.json file, which tells the Salesforce CLI and Cursor that this directory is a valid Salesforce workspace. Your actual metadata lives inside the force-app/main/default directory, organized into subfolders by type.

Test Your Understanding

Complete this check to unlock the Discovery Checklist and Implementation Guide.

bolt

Knowledge Check

What is the primary reason an SE needs an SFDX project when using Cursor?

Which file is considered the 'heart' of an SFDX project and defines its configuration?

In a standard SFDX project, where is the source code (Apex, LWC, etc.) stored by default?

Which of the following are benefits of using a local SFDX project? (Select all that apply)

Discovery Milestones

lockCOMPLETE QUIZ TO UNLOCK
lock

Create a New SFDX Project

Finish previous step to unlock

lock

Open Project in Cursor Workspace

Finish previous step to unlock

lock

Authorize your Salesforce Org

Finish previous step to unlock

lock

Initialize git

Finish previous step to unlock

lightbulb
Expert Guidance

Work through each milestone in sequence. Opening the Implementation Blueprint for each step will give you the production-ready patterns you need to apply the concept immediately.