Newer Version Available
Enable Unlocked and Second-Generation Managed Packaging
Enable packaging in your org so you can develop unlocked packages or second-generation
managed packages. You can work with the packages in scratch orgs, sandbox orgs, and target
subscriber orgs.
Enable Dev Hub in your org.
- Log in to the org where you’ve enabled Dev Hub.
- From Setup, enter Dev Hub in the Quick Find box and select Dev Hub.
-
Select Enable Unlocked Packages and Second-Generation Managed
Packages.
After you enable Second-Generation Packaging, you can’t disable it.
-
(Optional) Allow non-admin users access to the Dev Hub to create packages.
Assign non-admin users the Create and Update Second Generation Packages user permission. See Add Salesforce DX Users for details.