Salesforce DX (Developer Experience) is Salesforce's modern development methodology. It brings traditional software engineering practices — version control, modular code, CI/CD, scratch orgs — to the Salesforce platform.
Core concepts:
- Source-Driven Development — code and metadata in Git, not in an org.
- Project Structure — standard layout with
force-app/main/default/,config/,manifest/. - Scratch Orgs — disposable orgs from config files.
- Dev Hub — a parent org that authorises scratch org creation.
- Salesforce CLI — the orchestration tool.
- Unlocked / Managed Packages — modular distribution units.
- VS Code Extensions — UI on top of the CLI.
Why DX: branch-based feature development with scratch orgs, CI/CD pipelines, modular code via Unlocked Packages, test automation, reproducible orgs from source.
Migration from "click-and-deploy": extract metadata to source, set up Git, train the team, build CI pipeline, retire change sets. Worth it for any team larger than 1-2 devs.
