Newer Version Available
Know Your Orgs
Choose Your Dev Hub Org
- As owner of all unlocked packages
- To link your namespaces if you want to create namespaced unlocked packages
- To authorize and run your force:package commands
When you create an unlocked package using Salesforce CLI, you associate the package with a specific Dev Hub org. The Dev Hub org owns the package, and you can’t transfer package ownership from one Dev Hub org to another. When you’re ready to define and create a package for production use, be sure to create the package using the Dev Hub in one of your production orgs.
Namespace Org
If you are using a namespace, you’ll need a namespace org to acquire a package namespace. If you want to use the namespace strictly for testing, choose a disposable namespace.
After you create a namespace org and specify the namespace in it, open the Dev Hub org and link the namespace org to the Dev Hub org.
Other Orgs
- You can create scratch orgs on the fly to use while testing your packages.
- The target or installation org is where you install the package.