Failed to obtain the org list from the Salesforce CLI
I am trying to create an OAuth connection for one of my orgs and I keep getting the following error from Salesforce CLI:
Failed to obtain the org list from the Salesforce CLI:
• status = 1
• message = Unexpected argument: --skipconnectionstatus
See more help with --help
I have tried to downgrade the version as suggested on another ticket (sfdx plugins:install salesforcedx@48.10.1
) and I have also updated it to the latest version, but still having the same error.
IntelliJ Version:
IntelliJ IDEA 2021.2 (Community Edition)
Build #IC-212.4746.92, built on July 27, 2021
Runtime version: 11.0.11+9-b1504.13 amd64
Illuminated Cloud Version: 2.1.8.6
Comments (4)
-
repo owner -
repo owner - changed status to resolved
Resolving as I've always seen an uninstall/reinstall fix this (at least in the small handful of time I've seen this issue). If it isn't fixed by that, and if it also doesn't reproduce from the raw command-line, feel free to reopen.
-
reporter Indeed uninstall/reinstall fixed the issue.
Thank you.
-
repo owner Glad to hear! Thanks for circling back around so I know it's resolved for you.
- Log in to comment
If your CLI isn't recognizing the
--skipconnectionstatus
argument offorce:org:list
, it's either dated or corrupt. I'd recommend you do a full uninstall/reinstall of the CLI as I've seen that help a few folks who had this issue in the past. If that doesn't help, please try runningsfdx force:org:list --skipconnectionstatus
from the command-line. If that also fails, you'll need to log a bug with the CLI team:https://github.com/forcedotcom/cli/issues