Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Second-Generation Managed Packages
Second-generation managed packaging (managed 2GP) ushers in a new way for ISV partners
to develop, distribute, and manage their apps and metadata. You can use managed 2GP packaging to
organize your source, build small modular packages, integrate with your version control system,
and better utilize your custom Apex code. With version control being the source of truth, there
are no packaging or patch orgs. You can execute all packaging operations via Salesforce CLI, or
automate them using scripts. Submit second-generation managed packages for security review, and
list them on AgentExchange.
Use managed 2GP to create new managed packages. You can’t currently migrate a first-generation managed package to a second-generation managed package.
Another great way to learn about second-generation managed packages, is by taking the Second-Generation Managed Packages Trailhead module.