Packaging: Unlocked Packages (Beta) with More Supported Components and Other Enhancements

Create and manage second-generation packages, including unlocked packages, using the Salesforce CLI.
Available in: Salesforce Classic and Lightning Experience
Dev Hub available in: Enterprise, Performance, and Unlimited Editions
Scratch orgs available in: Developer, Enterprise, Group, and Professional Editions
Parter-specific scratch orgs available in: Partner Developer, Partner Enterprise, Partner Group, and Partner Professional Editions



As a beta feature, Second-Generation Packaging is a preview and isn’t part of the “Services” under your master subscription agreement with Salesforce. Use this feature at your sole discretion, and make your purchase decisions only on the basis of generally available products and features. Salesforce doesn’t guarantee general availability of this feature within any particular time frame or at all, and we can discontinue it at any time. This feature is for evaluation purposes only, not for production use. It’s offered as is and isn’t supported, and Salesforce has no liability for any harm or damage arising out of or in connection with it. All restrictions, Salesforce reservation of rights, obligations concerning the Services, and terms for related Non-Salesforce Applications and Content apply equally to your use of this feature. You can provide feedback and suggestions for second-generation packaging in the Packaging 2 Beta Trailblazer Community.

To enable this beta feature, which includes managed packages and unlocked packages, enable Packaging 2 in your Dev Hub org. Locked packages are available as part of a pilot.

Name Change for Developer-Controlled Packages (DCPs)

Why make things more complicated than necessary? Unlocked DCPs and locked DCPs are now referred to as unlocked packages and locked packages, respectively.