Newer Version Available

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

Enable Second-Generation Packaging (Beta)

Enable Second-Generation Packaging (2GP) in your org so you can develop 2GP 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. In the section for Second-Generation Packaging, click Non-GA Service Agreement to read the service agreement.
  4. To enable second-generation packaging, click Enable.
    After you enable Second-Generation Packaging, you can’t disable it.
  5. (Optional) Allow non-admin users to access 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.