You need to sign in to do that
Don't have an account?
DevHub not available in Sandbox
We want to use Salesforce DX. For this we need to enable DevHub. We can see the DevHub option in Production, but we cannot see it in our Sandboxes. Please help.
You need to sign in to do that
Don't have an account?
Scratch Orgs and Sandboxes are unrelated. You don't create scratch orgs in sandboxes.
The scratch org is a source-driven and disposable deployment of Salesforce code and metadata. A scratch org is fully configurable, allowing developers to emulate different Salesforce editions with different features and preferences. (src (https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs.htm))
If you want to use SFDX to develop in a sandbox, check this out (https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandboxes.htm) and more specifically, how to use SFDX to develop against any org (https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_develop_any_org.htm).
All Answers
Scratch Orgs and Sandboxes are unrelated. You don't create scratch orgs in sandboxes.
The scratch org is a source-driven and disposable deployment of Salesforce code and metadata. A scratch org is fully configurable, allowing developers to emulate different Salesforce editions with different features and preferences. (src (https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs.htm))
If you want to use SFDX to develop in a sandbox, check this out (https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandboxes.htm) and more specifically, how to use SFDX to develop against any org (https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_develop_any_org.htm).