
Andrew Hanna

Andrew Hanna

TL;DR: A managed package in Salesforce is a namespaced, upgradeable and IP-protected bundle of components that an ISV distributes to customer orgs, usually through AppExchange. Salesforce supports two generations, 1GP and 2GP, recommends 2GP for new apps, and since Summer '25 lets you convert a 1GP package and migrate its subscribers. Picking the format is the easy part now; running package versions through a real release pipeline is where most teams still struggle.
A managed package bundles Apex, objects, flows, Lightning components and other metadata under a globally unique namespace prefix, which Salesforce adds to every component's API name. According to the Apex Developer Guide, it is the format built for commercial distribution:
Salesforce's official comparison comes down to where the truth lives:
Our view is simple: if your package's real history lives in a packaging org rather than in Git, every other DevOps practice you adopt is built on sand. For the details 2GP rarely puts on the first page, read the secrets of the Salesforce second-generation managed package.
Yes. Package Migrations reached general availability with Summer '25, which
Salesforce's
developer blog
framed as the top request from ISV developers. It runs in two steps: convert a 1GP
version into a 2GP version with sf package convert, then migrate
subscribers onto it. The
documented considerations
are worth reading before you start:
The ecosystem is moving. GRAX, for one, has announced that support for its 1GP package ends on December 18, 2026. Expect more vendor notices like that, and treat your own migration as a release with a rollback plan, not a one-off script.
Most of the Salesforce DevOps conversation is about moving metadata between orgs. That is the subscriber's problem: Gearset's own managed package guide, for example, centres on deploying installed packages and customizations from one org to another. The ISV's problem is different: building package versions, promoting the right one, testing installs and upgrades, and pushing to subscribers without breaking them. We have argued before that every Salesforce DevOps tool ignores package development, and it is the reason we started building Serpent.
Skipping steps three and four is how the hidden risks in a deployment process end up in a customer's org. If you build on AppExchange, see how Serpent approaches DevOps for ISVs, or go straight to 2GP CI/CD.
Can you install a managed package in a sandbox?
Yes. Installing it in a sandbox first lets you test how its triggers and flows behave with your configuration before production.
Can subscribers edit a managed package?
Not its contents. Some component attributes stay editable after install, but those customizations live outside the package.
Does every managed package need a namespace?
Yes. Each managed package needs a globally unique namespace prefix, which Salesforce adds to component API names.
Is 1GP being retired?
Salesforce still supports 1GP and recommends 2GP for new apps. Package Migrations let you convert existing 1GP packages and move subscribers when you are ready.
Commitment free!