Newer Version Available

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

Salesforce DX Packaging

Salesforce DX packaging (sometimes called second-generation packaging or 2GP) lets you create packages in a source-driven development environment. You can create and deploy packages in your own Salesforce org or to develop and distribute packages to your customers.
Use packaging to take advantage of these helpful features.
  • The Salesforce CLI provides commands for the entire application life cycle so you can work efficiently with your packages, scratch orgs, and development processes.
  • Options for enterprise customers to organize and deploy metadata to production orgs.
  • Multiple packages per namespace, so you can better organize your source and easily share Apex code. You can use public Apex classes across packages rather than global Apex classes.
  • Feature branch development and testing.
  • Completely API-driven functionality.
  • Packages that are built directly from the source.
  • Ease of development and distribution of dependent packages.