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

Uninstalling salesforcedx plug-in doesn't actually uninstall #386

Closed
keirbowden opened this issue May 1, 2020 · 5 comments
Closed

Uninstalling salesforcedx plug-in doesn't actually uninstall #386

keirbowden opened this issue May 1, 2020 · 5 comments
Labels
documentation Issue or pull request to update or fix documentation

Comments

@keirbowden
Copy link

Summary

After uninstalling the salesforcedx plug-in, all the force commands still work and the plug-in is still shown with the --core flag.

Steps To Reproduce:

  1. Run sfdx plugins:uninstall salesforcedx
  2. Receive message that the plug-in is uninstalling
  3. Run sfdx force:apex:class:create -n TestClass
  4. Test class created without issue

Expected result

Force commands no longer available.

Actual result

Force commands succeed. Further, running sfdx plugins --core shows that the latest version is still installed.

Additional information

I don't really see this as a bug, but it's unexpected behaviour and I'm curious if it is intentional - removing this plug-in is something I only try if there are problems or I'm on a pre-release and want to upgrade.

SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
7.56.1

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

OS and version:
MacOS 10.15.4

@keirbowden
Copy link
Author

I tried downgrading to 46.16.0 and uninstalling that. I got a bunch of messages about it being uninstalled, and when I checked I was back on 48.12. It seems that uninstalling reverts to the latest version of the plug-in that I have locally.

@shetzel
Copy link
Contributor

shetzel commented May 1, 2020

You can't uninstall a core plugin, which is by design. If you don't want the sfdx core plugins then you probably just want the oclif CLI.

If you have a specific version of an sfdx core plugin installed, i.e., not the version bundled with the CLI, then uninstalling will take you back to the plugin version corresponding to the CLI version you have.

I think a potential improvement would be to provide a better message when trying to uninstall a core plugin. @clairebianchi - any thoughts?

@clairebianchi clairebianchi added the documentation Issue or pull request to update or fix documentation label May 6, 2020
@xyc
Copy link

xyc commented Aug 18, 2020

@shetzel The developer documentation mentions "Uninstall the salesforcedx Plug-In" as well https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_uninstall.htm

@shetzel
Copy link
Contributor

shetzel commented Aug 20, 2020

@xyc If you have a non-core version of the salesforcedx plugin you can uninstall it that way.

@mshanemc
Copy link
Contributor

We're retiring the salesforcedx plugin plugin soon #1016

so I'm closing this. We have a low-priority WI to tell people they can't uninstall a core plugin (they can uninstall a version of a core plugin that isn't the bundled version, but that just gets them back to the bundled version).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issue or pull request to update or fix documentation
Projects
None yet
Development

No branches or pull requests

5 participants