Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sfdx force:org:list --clean doesn't clear non connectable orgs (non scratch orgs) #637

Closed
jonathanwiesel opened this issue Sep 24, 2020 · 3 comments

Comments

@jonathanwiesel
Copy link

Summary

I have some orgs that are not connectable anymore, one reason is sandbox refreshes, the output of force:org:list usually shows something like this:

=== Orgs
     ALIAS                  USERNAME                                      ORG ID              CONNECTED STATUS
───  ─────────────────────  ────────────────────────────────────────────  ──────────────────  ──────────────────────────
                            [email protected]                                   00D1r000000xxxxxxx  RefreshTokenAuthError

I was expecting that sfdx force:org:list --clean should remove that entry from the list, this however seems to not be the case.

Steps To Reproduce:

  • Create a new sandbox org
  • Authorize it using sfdx force:auth:web:login
  • Refresh the sandbox
  • Run sfdx force:org:list should show the authorization being invalid
  • Run sfdx force:org:list --clean, the invalid connection is still there

Expected result

Once executing the sfdx force:org:list --clean non-connectable orgs should be removed from the list

Actual result

Non-connectable orgs are still shown.

Additional information

Feel free to attach a screenshot.

SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
sfdx-cli/7.74.1 darwin-x64 node-v14.7.0

SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)

@oclif/plugin-autocomplete 0.2.0
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.2.0 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.9.0 (core)
@oclif/plugin-update 1.3.10 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-trust 3.4.3 (core)
alias 1.1.1 (core)
analytics 1.12.1 (core)
config 1.1.8 (core)
generator 1.1.3 (core)
salesforcedx 49.10.0 (core)
├─ @salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
├─ custom-metadata 1.0.10 (core)
├─ templates 49.9.1 (core)
├─ apex 0.0.9 (core)
└─ salesforce-alm 49.11.0 (core)
sfdx-cli 7.74.1 (core)

OS and version:
macOS 10.15.6

@1ktribble
Copy link

I have this same issue on sfdx-cli/7.82.0-3d0c527ac6 darwin-x64 node-v12.18.3

@mshanemc
Copy link
Contributor

mshanemc commented Feb 8, 2021

This should be fixed in the new open-source version. You can try it early, here: #835

@mshanemc
Copy link
Contributor

I'm gonna close the issue now that the new org commands are shipped.

If you're still seeing it, please reopen or open a new one AND supply the output of sfdx plugins --core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants