Newer Version Available
Know Your Orgs
Choose Your Dev Hub Org
Use the Dev Hub org for these purposes.
When you create an unlocked package using Salesforce CLI, you associate the package with a specific Dev Hub org. 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.
- As owner of all unlocked packages
- To link your namespaces if you want to create namespaced unlocked packages
- To authorize and run your sf package commands
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
When you work with packages, you also use these 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.