Select and Enable a Dev Hub 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 |
Determine which org to use as your Dev Hub org, then enable the Dev Hub setting in that org. Dev Hub comprises objects with permissions that allow admins to control the level of access available to a user and an org. If you’re developing an unlocked package that you intend to deploy to other orgs, enable the Dev Hub setting in one of your active production orgs. This ensures that your package is owned by an active org.
All Salesforce ISV and OEM partners should designate their Partner Business Org (PBO) as their Dev Hub org, see Enable Dev Hub and Second-Generation Managed Packaging for more details.
To enable Dev Hub in an org:
- Log in as System Administrator to your production, Developer Edition, or trial org.
-
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.
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 Hyperforce are created on a Hyperforce instance.
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 can expire due to inactivity.
- Package versions are associated with your Dev Hub org. When a trial or Developer Edition org expires, you lose access to the package versions.