function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Frederick H LaneFrederick H Lane 

Salesforce DX Trailhead problem. Identifying scratch org within dev org

I am doing the Trailhead module Quick Start - Salesforce DX and am on step 3 'Create and Test Our Scratch Org'.
But, have the error message 'We could not find a scratch org whose organization name is 'Dreamhouse' belonging to this Dev Hub. Make sure to create a scratch org with a definition file that sets the 'orgName' property to 'Dreamhouse'.
My Dev org playground is;
aimit.crm.academy@playful-badger-em3zf0.com
And, scratch org;
00D5E0000009bvQUAQ, username: test-16go88iapr2r@example.com

I can see the Dreamhouse App info all pulled in from Github repo  but am not sure why Trailhead can't see it. I have repeated this task twice in 2 different Playgrounds and then deleted them. No success.  Please can anyone advise?
Rameshvar DayalRameshvar Dayal

Hi Frederick H Lane

Please update your config/project-scratch-def.json as below and follow the below steps.

{
  "orgName": "dreamhouse",
  "edition": "Developer",
  "features": [],
  "settings": {
    "orgPreferenceSettings": {
      "s1DesktopEnabled": true,
    }
  }
}

1. sfdx force:org:create -s -f config/project-scratch-def.json -a dreamhouse-org.

2. sfdx force:org:open

Eoin Quane 8Eoin Quane 8
Hello Fredrick H Lane,

Here is what worked for me. 

Perform this step first from the same folder where you run the sfdx commands for this Trailhead.

sfdx force:auth:web:login -d -a DevHub

Then perform the next steps as outlined in the Trailhead

sfdx force:org:create -s -f config/project-scratch-def.json -a dreamhouse-org
willys_fueguinowillys_fueguino
Actually Rameshvars answer worked here... Thanks dude