Salesforce application lifecycle management (ALM) is the process of planning, building, testing, releasing and maintaining changes to a Salesforce app. For an ISV selling packaged software to other organizations, it changes shape.
An ISV partner doesn't deploy metadata into one Salesforce org. It ships package versions from a Dev Hub, gets them through security review and then upgrades subscriber orgs it doesn't own.
This guide to Salesforce ALM for ISVs is written for engineering and release leads at Salesforce ISV partners who build managed apps with second-generation managed packages (2GP).
We'll go through the ALM framework from namespace to push upgrade, with the CLI commands and Salesforce's requirements at each step.
How is ISV application lifecycle management different from org ALM?
Take an internal team, say Salesforce administrators running Sales Cloud for their own company. They move changes through sandboxes into a production org they control.
That model, covered in our release management post, adds governance and compliance checks before production. One example is testing a new validation rule against existing automation.
An ISV partner releases one app into many subscriber orgs, and package downgrades aren't supported. Everything in the application lifecycle bends around that rule, from versioning to how carefully you push.
Org ALM and ISV ALM side by side
The table puts the two application lifecycle management models side by side on the points that change most for ISV partners. We go into each ISV row further down.
| Lifecycle point | Org-based ALM | ISV ALM with 2GP |
|---|---|---|
| What ships | A deployment of metadata components | An immutable package version |
| Source of truth | Version control, or the org itself | Source in a Git repository |
| Where it lands | One production org you own | Many subscriber orgs you don't own |
| Test gate | Apex tests on the production deploy | 75% code coverage to promote a version |
| Undoing a release | Redeploy the previous metadata | No downgrades, so you fix forward with a patch or new version |
| Outside gate | Your own change approval | Security review before listing and before 2GP push upgrades |
What ALM setup comes before the first package?
Three decisions belong in the planning phase. Two of them are hard to undo, so get the Dev Hub, namespace, and project file right before development starts.
Dev Hub in your Partner Business Org
Salesforce tells ISV partners to designate their Partner Business Org as their Dev Hub. That org then owns every 2GP package you create, and it manages your scratch orgs and namespaces.
Namespace
Take your time picking the namespace. Salesforce says you can't change it later, and it also has to be unique if there's any chance you'll sell the package.
Salesforce suggests letting several 2GP packages share one namespace. Add the @namespaceAccessible annotation and a core package and its add-ons can share public Apex.
One AgentExchange listing maps to one package. So Salesforce asks you to tell subscribers which dependent packages to install, and in what order.
Project file and package record
Each package's configuration, namespace included, lives in the sfdx-project.json file. You create the package record once with the Salesforce CLI, and its name must be unique within your namespace.
The same file declares your package dependencies explicitly, so every developer on the team can see which managed packages it relies on.
sf package create --name "Expense Tracker" --package-type Managed --path force-app --target-dev-hub my-pbo
The --no-namespace flag only works for unlocked packages, which means a managed package always carries your namespace. Put the namespace in sfdx-project.json before you run the create command.
How does development work in scratch orgs?
Day-to-day development happens in temporary scratch orgs built from a definition file that lists the features and settings your package needs. You must specify a Dev Hub to create one.
For a test, you can tell the CLI to skip your namespace (--no-namespace) or 2GP ancestors (--no-ancestors). By default, source tracking (the CLI's record of changes) keeps local files and the scratch org in step.
In CI workflows that only deploy and run Apex tests, Salesforce's CLI notes suggest turning it off. Our scratch org vs sandbox post covers where each kind of environment fits.
With 2GP, version control becomes the single source of truth for package metadata, which Salesforce calls a big win over 1GP and its packaging org.
Salesforce lets you tag each version with its branch name, so pick a branching strategy for your development team that maps branches to package versions.
How do package versions and patch versions work?
You make a package version with sf package version create, and it's an immutable snapshot of your app. It stays a beta until you promote it, and betas can't go in production orgs.
sf package version create --package "Expense Tracker" --code-coverage --installation-key-bypass --branch main --wait 30
sf package version promote --package 04t...
What a version needs before you can promote it
To promote a version, you have to build it with --code-coverage and hit 75% Apex coverage. A --skip-validation build is quicker, but you can never promote it and it can't use --code-coverage.
In CI runs, --async-validation returns a new version before package validation finishes. Salesforce also recommends setting an installation key, which stops unauthorized installs.
Ancestors
2GP builds a tree of versions, and you must name an ancestor for each new one. Once any subscriber upgrades to a version you can't abandon it, so test first.
Patch versions
A patch version like 1.2.1.0 gets a fix to subscribers on an older version without a major upgrade. Patches can't add metadata, though, so new functionality needs a full version.
Install every new version in a clean scratch org so bugs show up in testing. Our CI/CD pipeline guide covers Salesforce's suggested CI script, which creates, installs and tests each version.
ISV ALM in stages
The table maps every stage to where it happens and the gate it has to clear. The commands are Salesforce CLI commands run against your Dev Hub.
| Stage | Where it happens | Command or tool | Gate to pass |
|---|---|---|---|
| Set up | Partner Business Org as Dev Hub | sf package create | Namespace chosen for good |
| Build | Scratch orgs and feature branches | sf org create scratch | Code review and Apex tests |
| Package | Dev Hub | sf package version create | Validation and 75% code coverage |
| Test | A clean scratch org | sf package install | Beta works as a fresh install |
| Review | Partner Security Portal | Code Analyzer and Source Scanner reports | Security review |
| Release | Dev Hub, then your listing | sf package version promote | Listing approval |
| Upgrade | Subscriber orgs | sf package push-upgrade schedule | Passed review and push enabled |
| License and support | LMA in your Partner Business Org | License Management App | Customer grants login access |
What are the security review requirements?
Between your package and its AgentExchange (formerly AppExchange) listing sits the security review. Anything your solution uses is in scope, whether it runs on or off the Salesforce Platform.
Salesforce's Product Security team will test your defenses against OWASP-listed attacks and try to get at data it has no permission to access.
Salesforce requires three reports: Code Analyzer, Partner Security Portal Source Scanner and a DAST scan. The DAST scan is for any part hosted on a domain you don't control.
You also hand over a full test environment with instructions, for example a Developer Edition org with the package installed.
Run Code Analyzer on every pull request, not once before submission. It's free and covers Apex, Lightning components, Visualforce and Flows.
Fixes found late are expensive: if you change code after a failed review, you upload a new package version and submit that. Each re-test carries a fee.
Expect the follow-up review to take two to three weeks, and listing approval is its own step before you publish. Build both into the plan for your first version's release.
How do upgrades reach subscriber orgs?
Subscribers can upgrade whenever they like, or you can push the upgrade to them. Page layout changes they've made carry over, while many other components stay editable only by you.
At first install, the subscriber's admin chooses a production or sandbox environment and which users get access to the app.
Push upgrades for 2GP
For 2GP, push upgrades are available only once a package has passed security review. To turn them on, you log a support case in the Salesforce Partner Community.
Whoever schedules the push needs the Create and Update Second-Generation Packages permission; unlocked packages have push upgrades on by default.
sf package push-upgrade schedule --package 04t... --org-file upgrade-orgs.csv --start-time "2026-11-14T21:00:00" --target-dev-hub my-pbo
Start with a short org file of test orgs and friendly customers to lower the risk. Since there are no downgrades, monitor each push with sf package push-upgrade report, which retrieves its status.
Moving from 1GP to 2GP
Teams still on a first-generation managed package can run sf package convert to turn a released 1GP version into 2GP. To push it to 1GP subscribers, add the --migrate-to-2gp flag to the schedule command.
Where do the LMA and support fit?
For every install, the License Management App in your Partner Business Org creates a Lead and a License record. When the customer buys, set the license to active; its seats, up to 99,000,000, cap users.
Once the customer grants access, its support console logs you in to the subscriber org to debug. Package Version records show which version each customer is on, so check them before a push upgrade.
If your org doesn't have the LMA, request it through a Partner Community support case once you've signed your partner agreement.
Keep the list of people who can open subscriber orgs from that console short, and log every session. On the DevOps side, our post on preventing IP leakage covers access controls.
Where does Flosum fit in ISV ALM?
Version creation, promotion and push upgrades all run through the CLI commands above, which puts them in your CI scripts.
The Flosum DevOps Cloud App covers the DevOps practices around them: merge logic per metadata type, approvals and an audit trail for governance over every change and deployment. That's the change management side our release guide covers.
Flosum integrates with version control systems such as GitHub, GitLab, Bitbucket and Azure DevOps, and with Jira. Git is optional, according to its product page.
For how CI/CD stages connect in general, see our CI/CD workflow diagram; the Salesforce DX overview has background on the packaging tools.
You can let Flosum host it on Flosum-managed AWS, or run it customer-hosted on your own AWS, Azure or GCP virtual machine.
Security teams weighing the options can read our comparison of deployment models, which explains the trade-offs.
FAQs
What is Salesforce application lifecycle management for ISVs?
It's the application development process an ISV follows to build, package, release and upgrade an app across subscriber orgs. The moving parts are a Dev Hub, namespace, package versions, security review and upgrades.
What is a second-generation managed package?
It's a managed package built from source in version control and owned by your Dev Hub. As Salesforce notes, 2GP doesn't need packaging or patch orgs.
Can I change my package namespace later?
No. Salesforce says you can't change the namespace at a later date, so settle on it before you create the first package.
Can I push upgrades with a 2GP package?
Yes, after the package passes security review and you've enabled push upgrades through a Partner Community support case. You then schedule them with sf package push-upgrade schedule.
What can't go in a patch version?
New metadata. Patches are for fixing an existing version, so if the fix needs a new component, it has to ship in a full package version.
Can a subscriber roll back to an earlier package version?
No. Salesforce says package downgrades aren't supported, which is why you test each version in a clean scratch org before promoting it.
Book a demo to see how Flosum handles version control, approvals and audit trails for your Salesforce release process.
Thank you for subscribing



