You need to sign in to do that
Don't have an account?
Daniel Boardman
Error creating a scratch org
I'm using an admin account and using an org setup as "Dev Hub".
When creating the scratch org:
sfdx force:org:create -f project-scratch-def.json -a AbcScratchOrg
I receive this error message:
ERROR running force:org:create: We couldn't create this sandbox or scratch org because the associated Dev Hub isn't authorized. Authorize the Dev Hub and try again.
I've ensured the org is indeed configured as Dev Hub and that the admin user in visual studio code is set:
Sfdx force:config:set defaultdevhubusername=<devhubusername> --global
Any ideas/help on what might be the issue would be much appreciated.
When creating the scratch org:
sfdx force:org:create -f project-scratch-def.json -a AbcScratchOrg
I receive this error message:
ERROR running force:org:create: We couldn't create this sandbox or scratch org because the associated Dev Hub isn't authorized. Authorize the Dev Hub and try again.
I've ensured the org is indeed configured as Dev Hub and that the admin user in visual studio code is set:
Sfdx force:config:set defaultdevhubusername=<devhubusername> --global
Any ideas/help on what might be the issue would be much appreciated.
c\:projects>sfdx force:org:list
A (D) on the left points to the default Dev Hub org username.
What are the results?
All Answers
c\:projects>sfdx force:org:list
A (D) on the left points to the default Dev Hub org username.
What are the results?
I didn't have the (D) for the admin user, nor did I have my "instanceUrl, defaultusername" set from sfdx force:config:set. I didn't play enough to know if all were required or if only the (D) part on the user was missing.
Thanks a bunch - figured it was something simple being overlooked :)
https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
- reloading comp
- reinstalling sfdx
- created new devHub org
I have (D) 'Connected' next to devhub org.