Newer Version Available

This content describes an older version of this product. View Latest

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.
  1. Log in to the org where you’ve enabled Dev Hub.
  2. From Setup, enter Dev Hub in the Quick Find box and select Dev Hub.
  3. Select Enable Unlocked Packages and Second-Generation Managed Packages.
    After you enable Second-Generation Packaging, you can’t disable it.
  4. (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.