Newer Version Available
Enable Dev Hub Features in Your Org
| Available in: Salesforce Classic and Lightning Experience |
| Dev Hub available in: Developer, Enterprise, Performance, and Unlimited Editions |
| Scratch orgs available in: Developer, Enterprise, Group, and Professional Editions |
It’s not necessary to enable Dev Hub if you plan to use Salesforce CLI with only sandboxes unless you plan to create second-generation (2GP) packages. The 2GP packages use a scratch org during the package generation process.
Enabling Dev Hub in a production or business org is safe and doesn’t cause any performance or customer issues. Dev Hub comprises objects with permissions that allow admins to control the level of access available to a user and an org.
Consider these factors if you select a trial or Developer Edition org as your Dev Hub.
- You can create up to six scratch orgs and package versions per day, with a maximum of three active scratch orgs.
- Trial orgs expire on their expiration date.
- Developer Edition orgs that are inactive for 365 days are deactivated.
- You can define a namespace in a Developer Edition org that isn’t your Dev Hub, and you can enable Dev Hub in a Developer Edition org that doesn’t contain a namespace.
- If you plan to create package versions or run continuous integration jobs, it’s better to use a production or business org as your Dev Hub because of higher scratch org and package version limits. Package versions are associated with your Dev Hub org. When a trial or Developer Edition org expires, you lose access to the package versions.
The Dev Hub org instance determines where scratch orgs are created.
- Scratch orgs created from a Dev Hub org in Government Cloud are created on a Government Cloud instance.
- Scratch orgs created from a Dev Hub org in Public Cloud are created on a Public Cloud instance.
To enable Dev Hub in an org:
- Log in as System Administrator to your Developer Edition, trial, or production org (for customers), or your business org (for ISVs).
-
From Setup, enter Dev Hub in the Quick Find box and select
Dev Hub.
If you don't see Dev Hub in the Setup menu, make sure that your org is one of the supported editions.
-
To enable Dev Hub, click Enable.
After you enable Dev Hub, you can’t disable it.