I accidentally authenticated to a developer edition as my default dev hub and it messed up my list of orgs. I logged out of all orgs in sfdx and re-logged in with the correct org as my dev hub. I've also connected to a few sandboxes. Now when I force:org:list it shows undefined.


What us odd is if I go to set a default for my project in vs code, I can see the orgs I'm logged into:

vs code

I'm on sfdx-cli/7.42.1-e41dbeb8d9 darwin-x64 node-v10.15.3

  • 1
    What version of sfdx cli you are on ? Jan 21, 2020 at 1:06
  • 1
    Can you tail ~/.sfdx/sfdx.log and see if there's any errors there?
    – sfdcfox
    Jan 21, 2020 at 1:09
  • Updated question with my version. And no errors are showing in the logs. Jan 21, 2020 at 1:46

1 Answer 1


I seemed to have fixed the problem by uninstalling the salesforcedx plugin and then reinstalling it.

sfdx plugins:uninstall salesforcedx

sfdx plugins:install salesforcedx@latest

  • An sfdx update might have also fixed it I guess.Looks like you have older version Jan 21, 2020 at 2:46
  • 2
    I had run sfdx update first and it didn't make a difference. Jan 21, 2020 at 2:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .