Connections showing in sfdx cli coming across as OAuth in IC2

33 views
Skip to first unread message

Tanuj Sharma

unread,
Mar 31, 2023, 2:12:26 PM3/31/23
to Illuminated Cloud Q&A
All my scratch orgs have started showing up as OAuth connections in IC2 recently (previously scratch DX connections) and some sfdx commands don't seem to be working as intended either (sfdx org list --clean doesn't clean the list of orgs) - I am able to see a bunch of old, expired orgs when I check org list. I checked the json for the various orgs and the isScratch attribute is set to true but cli still says no active scratch orgs. 

Scott

unread,
Mar 31, 2023, 2:28:14 PM3/31/23
to Illuminated Cloud Q&A, tsh...@tractionrec.com
That sounds most likely to be an issue with the Salesforce CLI, but we can confirm that. When you run "sfdx force:org:list --skipconnectionstatus --json", do you see your scratch orgs listed under "nonScratchOrgs" or under "scratchOrgs"?

As for "--clean" not working properly, there was at least one bug in the past where it would actually corrupt one or more of the ~/sfdx/*.json files. I believe they've fixed that now. You might try a full uninstall/reinstall of the CLI to see if that helps address these issues. Note that on Mac/Linux, a full uninstall requires manual removal of some cache directories:


If those steps are skipped, you can still see issues from a bad/incomplete old CLI install after reinstalling.

Please let me know if that doesn't help.

Regards,
Scott Wells

Tanuj Sharma

unread,
Mar 31, 2023, 2:40:14 PM3/31/23
to Illuminated Cloud Q&A, Scott, Tanuj Sharma
They're all under nonScratchOrgs. Yeah, I think it may be an issue with the salesforce cli. I will try an uninstall/reinstall and see if it helps. Thanks! 
Reply all
Reply to author
Forward
0 new messages