Newer Version Available
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?
- Enable Dev Hub in Your Org
- Enable Second-Generation Managed Packaging
- Install Salesforce CLI
- Create and Register Your Namespace for Second-Generation Managed Packages
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:
For more information on scratch org limits, see Scratch Orgs .
1sf limits api display