Newer Version Available

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

Before You Create Second-Generation Managed Packages

When you use second-generation managed packaging, to be sure that you set it up correctly, verify the following.

Did you?

Developers who work with managed 2GP packages need the correct permission set in the Dev Hub org. Developers need either the System Administrator profile or the Create and Update Second-Generation Packages permission. For more information, see Add Salesforce DX Users.

The maximum number of managed 2GP package versions that you can create from a Dev Hub per day is the same as your daily scratch org allocation. To request a limit increase, contact Salesforce Partner Support.

Scratch orgs and packages count separately, so creating a second-generation managed package doesn’t count against your daily scratch org limit. To view your scratch org limits, use the CLI:
1sf limits api display
For more information on scratch org limits, see Scratch Orgs .