Skip to contentIntroducing the Integration Factory
Back to Blog
ISV & Partners

What Is Dev Hub in Salesforce, and Why ISVs Run It in the PBO

Sunny Chauhan

Dev Hub is the Salesforce org setting that owns your second-generation (2GP) managed packages, your scratch orgs and your linked namespaces. Whichever org you switch it on in becomes the permanent owner of every package you create there, so for a SaaS company the real question is which org, not how. Salesforce answers that directly. "All Salesforce ISV and OEM partners should designate their Partner Business Org (PBO) as their Dev Hub org," says its Enable Dev Hub page.

For a SaaS company deciding how to get a Salesforce app built and shipped to customers, the Dev Hub choice is made before the first line of code and sits under every release after it. A package created in an engineer's Developer Edition org can't be moved before it passes security review, and it disappears if that org expires. Appnigma builds these apps for SaaS teams, and its marketplace apps work delivers "a Salesforce managed package or HubSpot app built around your product and customer workflows," built by ex-Salesforce engineers. If you only need to know what the PBO itself is, read our explainer on the Partner Business Org and what comes in it.

Updated October 2026. Checked against Salesforce's Second-Generation Managed Packaging Developer Guide and the Salesforce DX Developer Guide. The earlier version gave the PBO 100 active and 100 daily scratch orgs, where Salesforce documents 150 and 300. It also said namespaces are registered from Setup in the Dev Hub and that later versions auto-approve through a "Self-Review Wizard," neither of which Salesforce documents. This update adds package ownership and transfer rules, Dev Hub user licenses, worked limit arithmetic and the errors teams hit first.

Which org should own your packages

Dev Hub can be switched on in four editions, which Salesforce's Select and Enable a Dev Hub Org page names as Developer, Enterprise, Performance and Unlimited. The page adds "You can't enable Dev Hub in a sandbox." What changes between them is how long the org lives and how many scratch orgs it can issue.

Org used as Dev HubActive scratch orgsDaily scratch orgsWhat happens to packages if the org lapses
Active Partner Business Org150300PBO is a production org and stays while you are a partner
Trial PBO2040Trial orgs expire on their expiration date
Developer Edition or trial org36"You lose access to all packages associated with that Dev Hub org"
Enterprise Edition4080Your company's production org
Unlimited or Performance Edition100200Your company's production org

The partner numbers come from Scratch Org Allocations for Salesforce Partners. The edition numbers come from Supported Scratch Org Editions and Allocations, which also notes that "If you're a partner or ISV, your scratch org allocations are likely different."

For an ISV the PBO wins on more than limits. Salesforce's PBO reference describes it as an "internal-use production org" that "comes with two Sales & Service Cloud Enterprise Edition licenses" and the License Management App already installed. Partner edition scratch orgs (Partner Developer, Partner Enterprise, Partner Group and Partner Professional) can only be created "from a Dev Hub partner business org," per Supported Scratch Org Editions for Partners. And the allocations page says "All partners get 100 Salesforce Limited Access - Free user licenses," which is how a whole engineering team gets Dev Hub access without buying seats.

Using your company's own Enterprise or Unlimited production org is allowed, and it suits an internal unlocked package. For a product you sell, the PBO keeps the package with the partner account that lists it.

What is the purpose of a Dev Hub org in second-generation packaging?

Trailhead's 2GP quiz wants one answer, that the Dev Hub manages the scratch orgs used in development and testing. The answer with business weight is ownership. The Enable Dev Hub page says "that Dev Hub becomes the owner of every managed 2GP package you create," and every package ID (0Ho) and version ID (04t) is recorded in that org, not in your repository.

That is the real change from first-generation packaging. A 1GP package is owned by its own packaging org, and Salesforce's 1GP and 2GP comparison says a packaging org "can own only one managed package" while a Dev Hub "can own one or more packages." In 2GP the source of truth for your code moves to version control, but the source of truth for who owns the product moves to the Dev Hub. Lose access to that org and you keep the code but lose the ability to ship upgrades to the customers who installed it.

The rest of the path to a listing runs through the same org. Versions are built and promoted against it, and only a released version can go to review, because Salesforce's required materials page says "We can't accept an unmanaged or beta package." The commands are in our guide to creating and upgrading a 2GP managed package.

How to enable Dev Hub in your Partner Business Org

Salesforce's PBO reference notes that "Dev Hub is disabled in newly provisioned PBOs," so this is a one-time step for an admin. The steps follow the Enable Dev Hub page.

  1. Log in to the Partner Business Org as a System Administrator.
  2. From Setup, enter Dev Hub in Quick Find and select Dev Hub.
  3. Select Enable Dev Hub.
  4. Select Enable Unlocked Packages and Second-Generation Managed Packages.

Both switches are permanent. For Dev Hub the page says "After you enable Dev Hub, you can't disable it." The 2GP setting carries the same warning. Nothing else in the org changes, so the permanence is a reason to pick the right org, not a reason to wait.

Then authorize the PBO from Salesforce CLI and make it the default Dev Hub for your project.

sf org login web --alias pbo --set-default-dev-hub
sf org list limits --target-org pbo

The second command, sf org list limits, includes ActiveScratchOrgs and DailyScratchOrgs with what remains of each. The DX guide's allocations page shows the same check under its older name, sf limits api display. If it reports 3 and 6, the CLI is pointed at a Developer Edition org, not the PBO.

Giving developers access without buying full licenses

Every developer who creates scratch orgs or package versions for your app needs a user account in the PBO that serves as your Dev Hub. Salesforce's Add a Limited Access User page has you create the user with the Salesforce Limited Access - Free license and the Limited Access User profile, then assign a permission set. That license "restricts access to standard and custom objects," so a contractor can build packages without seeing your PBO's sales data.

The permission set needs specific object and system permissions, listed on Create and Assign a Permission Set to Developer Users.

PermissionLevelNeeded for
Scratch Org InfosRead, Create, Edit, DeleteCreating scratch orgs
Active Scratch OrgsRead, Edit, DeleteSeeing and deleting scratch orgs
Namespace RegistriesReadBuilding namespaced packages
Create and Update Second-Generation PackagesSystem permissionpackage create and package version create

The last row is the one people miss. Without it a developer can create scratch orgs all day and still get a permissions error on the first package version. The free license has gaps too. Salesforce's Dev Hub license page says it "doesn't provide access to some Salesforce CLI commands, such as sf limits api display," so keep at least one full-license user who can check allocations.

Registering and linking your namespace

The namespace, the prefix on every component's API name in your package, is not created in the Dev Hub. Salesforce's Link a Namespace to a Dev Hub Org page says to "create a Developer Edition org that is separate from the Dev Hub or scratch orgs," register the prefix there, then use Link Namespace in the Dev Hub's Namespace Registries app. The warning on that page is the one to plan around. "After you associate a namespace with an org, you can't change it or reuse it."

Treat that small Developer Edition org as a company asset, not a throwaway. A package transfer to another Dev Hub requires the namespace to be linked to the destination too, and for a sale to another company Salesforce's transfer page asks you to hand over "the login credentials to the namespace org." Register it under a shared company admin login, not an engineer's personal email, and log in now and then so it doesn't lapse for inactivity. Our post on how a package namespace works covers choosing the prefix.

How far 150 active and 300 daily scratch orgs go

A PBO Dev Hub has two scratch org limits, and they measure different things. The allocations page defines the daily allocation as "the maximum number of successful scratch org creations you can initiate in a rolling (sliding) 24-hour window." The active allocation frees up when a scratch org is deleted or expires. Package versions have their own daily cap. The partner allocations page says it "is equal to the daily allocated scratch orgs," so 300 a day on an active PBO, or 500 a day for builds that skip validation.

A worked example from those documented numbers, not from any customer. Say a continuous integration pipeline creates two scratch orgs per pull request, one to run tests and one to install the built package version. On an active PBO, 300 daily creations cover 150 pull request runs in any 24 hours. On a Developer Edition Dev Hub, 6 daily creations cover 3. The active cap bites in a different way. If CI orgs are left at a long duration instead of being deleted after each run, 150 active orgs fill up in a day of busy merging, and new creations fail even though daily allocation remains.

Two habits keep a team inside the limits. Delete CI scratch orgs at the end of every job with sf org delete scratch. And set a short duration, such as --duration-days 1, on anything a pipeline creates, which is what Salesforce's own CI examples in the DX guide do.

Moving a package to a different owner org

A managed 2GP package can change owner Dev Hub, but only after it has passed review. Salesforce's transfer page says "Package transfers are only available for managed 2GP packages that have passed AgentExchange security review." The request goes through a Salesforce Customer Support case, one case per package, and "the destination Dev Hub org can't be a Developer Edition org or a trial org." A package converted from 1GP can't be transferred at all.

The transfer rule is why a package started in an engineer's personal Developer Edition Dev Hub is a trap. It can't move to the PBO before review, and Developer Edition orgs can expire. The Enable Dev Hub page says that if a package's non-production Dev Hub "expires or becomes inactive, the installed package can't be updated." For a package that hasn't passed review, the transfer page's advice is "creating a new managed 2GP package using your preferred Dev Hub." That is a new package with a new ID, and customers on the old one have no upgrade path into it.

Package transfer is also how a managed package changes hands in an acquisition. Salesforce describes it as "a way to sell a managed 2GP package to a different company," and the cleanest version of that sale is a package that has lived in the company's own PBO from the first build.

Errors teams hit in the first week

Most Dev Hub problems in a new ISV team come from the wrong org being authorized or the wrong edition being used.

  • Dev Hub missing from Setup. The org is a sandbox or an unsupported edition. Dev Hub is available in Developer, Enterprise, Performance and Unlimited only.
  • "No default dev hub found." Salesforce's troubleshooting page explains that --set-default-dev-hub run inside a project sets the value only for that directory. Run sf config set target-dev-hub=<username> --global or pass --target-dev-hub.
  • "You don't have permission to create Partner Edition organizations." The scratch org definition asks for a partner edition and the Dev Hub is not an active PBO, per the partner editions page.
  • Scratch org creation fails with daily allocation left. The active limit is full. Delete expired CI orgs or shorten their duration.
  • The package belongs to the wrong org. Check with sf package list --target-dev-hub pbo. If the package is missing there, it was created in another Dev Hub.

Frequently Asked Questions

Is Dev Hub free?

Yes, in an org you already have. The PBO is provisioned when you join the Salesforce Partner Community, per Salesforce's PBO reference, and partners get 100 free Limited Access licenses for developers.

Can I turn Dev Hub off after enabling it?

No. Both the Dev Hub switch and the 2GP switch are permanent, and neither changes how the rest of the PBO behaves for sales or licensing work.

Can I enable Dev Hub in a sandbox?

No. Salesforce states "You can't enable Dev Hub in a sandbox." Use the PBO itself.

Is the Dev Hub the same as the namespace org?

No. The namespace lives in a separate Developer Edition org that is linked to the Dev Hub, and the Dev Hub owns the packages that carry the prefix.

Can Appnigma build our managed package in our own Dev Hub?

Appnigma's marketplace apps work covers the build plus "Salesforce security review preparation and responses." Whoever builds your package, have it created in your company's PBO Dev Hub so the package stays yours.

About the author

Sunny Chauhan is the co-founder and CEO of Appnigma AI, which builds and maintains customer integrations and native Salesforce and HubSpot apps for B2B SaaS teams. Before Appnigma, he was on Salesforce's AppExchange team, where he worked with more than 300 SaaS partners. He has spent close to a decade on the Salesforce platform, including work at Zennify, and holds Salesforce certifications including Platform Developer II, Platform App Builder, Administrator, Data Cloud Consultant, and AI Associate.

Sources

  1. Enable Dev Hub and Second-Generation Managed Packaging, Second-Generation Managed Packaging Developer Guide
  2. Select and Enable a Dev Hub Org, Salesforce DX Developer Guide
  3. Scratch Org Allocations for Salesforce Partners and Supported Scratch Org Editions for Partners
  4. Supported Scratch Org Editions and Allocations and Create Scratch Orgs
  5. Salesforce Partner Business Org reference, ISVforce Guide
  6. Add a Limited Access User to Your Dev Hub Org and Create and Assign a Permission Set to Developer Users
  7. Link a Namespace to a Dev Hub Org
  8. Transfer a Second-Generation Managed Package to a Different Dev Hub
  9. Comparison of 1GP and 2GP Managed Packages
  10. Error: No default dev hub found
  11. Security Review Required Materials, ISVforce Guide

Which integration is your next deal waiting on?

Bring the customer requirements and your current setup. Get a clear scope and delivery timeline to take back to them.

© 2026 Appnigma AI. Built by ex-Salesforce engineers.