Link a Namespace to a Dev Hub Org
- 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. Tip Why do you need a My Domain? A My Domain adds a subdomain to your Salesforceorg URL so that it’s unique. As part of the Namespace Registry linking process, you’ll belogging into two distinct orgs simultaneously (your Dev Hub org and your Developer Edition org),and your browser can’t reliably distinguish between the two without a My Domain.You receive an email when your domain name is ready for testing. It can take a fewminutes.
- From the App Launcher menu, select Namespace Registries.
- Click Link Namespace.Tip Make sure your browser allows pop-ups from your Dev Hub org.
- 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 asingle Dev Hub org. You cannot link orgs without a namespace, sandboxes, scratch orgs, patch orgs,and branch orgs to the Namespace Registry.