Newer Version Available
Second-Generation Packaging
Second-generation packaging (2GP) allows customers and system integrators to create
packages in a source-driven development environment. You can create and deploy packages in your
own Salesforce org or 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.