A DevHub org is a special type of Salesforce org that allows you to create scratch orgs, which are disposable orgs that you can use for development and testing. You can use a DevHub org to create and manage scratch orgs for your team, as well as track their usage and set expiration dates.
To create a DevHub org, follow these steps:
note: skip 1-4 if you already have access to permanent org that you wish to use as a DevHub
- Go to the Salesforce website and click the "Sign Up for Salesforce" button.
- Follow the prompts to create a new account. You will need to provide your personal and professional information, as well as create a username and password.
- When you are asked to select a "role", choose "Developer". This will enable you to access the Developer Edition org, which is a free, fully-featured Salesforce org that you can use for development and testing.
- After you complete the sign-up process, you will be redirected to the login page. Log in to your new Developer Edition org using the username and password you created.
- Once you are logged in, go to the setup menu by clicking on the gear icon in the top right corner of the page.
- In the setup menu, search for "DevHub" in the Quick Find box, and then click on "DevHub" in the search results.
- On the DevHub page, click the "Enable DevHub" button. This will enable the DevHub feature for your org, allowing you to create and manage scratch orgs.
That's it! You now have a DevHub org that you can use to create scratch orgs for development and testing.