Newer Version Available
Link a Namespace to a Dev Hub Org
To use a namespace with a scratch org, you must link the Developer Edition org where the
namespace is registered to a Dev Hub org.
Complete these tasks before you link a namespace.
- If you don’t have an org with a registered namespace, create a Developer Edition org that is separate from the Dev Hub or scratch orgs. If you already have an org with a registered namespace, go to Step 1.
- In the Developer Edition org, create and register the namespace.
- Log in to your Dev Hub org as the System Administrator or as a user with the Salesforce DX Namespace Registry permissions.
-
(Required) If you have not already done so, define and deploy a My Domain name.
You receive an email when your domain name is ready for testing. It can take a few minutes.
- From the App Launcher menu, select Namespace Registries.
-
Click Link Namespace.
-
Log in to the Developer Edition org in which your namespace is registered using the org's
System Administrator's credentials.
We recommend that you link Developer Edition orgs with a registered namespace to only a single Dev Hub org. You cannot link orgs without a namespace, sandboxes, scratch orgs, patch orgs, and branch orgs to the Namespace Registry.
To view all the namespaces linked to the Namespace Registry, select the All
Namespace Registries view.