When I run this command I get the following error.

sfdx force:auth:web:login -d -a TestDevHub
sfdx force:org:create -a TestDevHub -s -v <developer_email> edition=Developer

The first command is successful and the second command is the error.

ERROR running force:org:create:  The requested resource does not exist

Dev Hub

Are there any ideas for this error? Thank you

  • 1
    Have you activated the Dev Hub feature in your TestDevHub org? Also note that you'll want to change the value of -a in your second command to give your scratch org a different alias.
    – David Reed
    Aug 17 '21 at 16:26
  • I am a junior salesforce developer. How can I check to activate the Dev Hub feature in TestDevHub org? Aug 17 '21 at 16:30
  • @DavidReed Could you let me know how I can create TestDevHub org? Aug 17 '21 at 16:39

You must Enable Dev Hub in your production or developer edition org before you can use it to create scratch orgs.

If you are new to Salesforce DX, start with the App Development with Salesforce DX module on Trailhead.

  • I've checked the Dev Hub. I think it's enabled. Could you let me know how to create the Dev Hub? Aug 17 '21 at 17:16
  • 1
    If you have an org with Dev Hub enabled, you do not need to create one.
    – David Reed
    Aug 17 '21 at 17:21
  • If so, where can I see the org name of Dev Hub? Aug 17 '21 at 17:32
  • 1
    If you're trying to find the name of an org that is connected to your SFDX keychain, use sfdx force:org:list
    – David Reed
    Aug 17 '21 at 17:47
  • thank you @David Aug 18 '21 at 5:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.