Definition
A Dev Hub is a Salesforce org that manages the creation and lifecycle of Scratch Orgs for Salesforce DX development. It serves as the central control point where developers authenticate, create ephemeral testing environments, and manage org metadata and source control.
Real-World Example
an admin at Redwood Financial uses Dev Hub to ensure the Salesforce org runs smoothly and securely. They configure Dev Hub during a scheduled maintenance window, test it in a sandbox first, and then deploy to production. The result is tighter security and a more streamlined experience for all 200 users in the org.
Why Dev Hub Matters
A Dev Hub is a Salesforce org that manages the lifecycle of Scratch Orgs in Salesforce DX development. To use Scratch Orgs, you first enable Dev Hub on a Salesforce org (typically a production org or a dedicated Developer Edition org), then developers authenticate against that Dev Hub through the Salesforce CLI. From there, they can create new Scratch Orgs on demand, list existing ones, and delete them when no longer needed.
The Dev Hub is the central control point for source-driven development with Scratch Orgs. It enforces limits on how many Scratch Orgs can be active at once, tracks who created each one, and is the integration point for tooling that manages Scratch Org lifecycles automatically. For production use, most teams enable Dev Hub on their main production org because it simplifies licensing and access management. For experimentation, a free Developer Edition org can serve as a Dev Hub. Either way, Dev Hub is a prerequisite for any modern Salesforce DX workflow.
How Organizations Use Dev Hub
- •TerraForm Tech — Enabled Dev Hub on their production org so the entire dev team can spin up Scratch Orgs for feature work. The setup took minutes and unlocked their full source-driven development workflow.
- •CodeBridge — Uses a dedicated Developer Edition org as their Dev Hub for client projects, keeping Scratch Org management isolated from any client production environments.
- •Quantum Labs — Built CI/CD automation that creates a fresh Scratch Org for every pull request via their Dev Hub, runs tests, and deletes it on success or failure.
