Before You Create Unlocked Packages

When you use unlocked packaging, to be sure that you set it up correctly, verify the following.

Did you?

Unlocked packaging is available with these licenses: Salesforce or Salesforce Limited Access - Free (partners only).

Note

Developers who work with unlocked 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 unlocked 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 Customer Support.

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