SFDX - No org configuration found for name

It may be a problem with aliases.

I have mistakenly created an alias: [email protected]

Then, not aware of consequences I created an alias again, in the way I wanted it in the first place: [email protected]=DevHub

So I ended up having two aliases, which were translated by the CLI:

DevHub -> [email protected] -> DevHub

So CLI was trying to use DevHub as my username, instead of [email protected]

Hence, the error: No org configuration found for name DevHub

Verify Your aliases with:

sfdx force:alias:list

and delete unnecessary aliases (if any) by setting them as empty:

sfdx force:alias:set DevHub=

Deleting folders "tools", "typings" and the file "sfdx-config.json" and then close and open vscode solved the problem.


I had the same problem just now, working with a developer sandbox and indeed authenticating again solved the issue. Thank you