Went to try and use SFDX tonight (it was working a few days ago) and received the following
Plugin "salesforcedx" v41 or later may only be installed in a v6.0.0 or later CLI. 41.3.0
I tried to run sfdx update
and received
sfdx-cli: Updating salesforcedx@latest to 41.3.0…Plugin "salesforcedx" v41 or later may only be installed in a v6.0.0 or later CLI. 41.3.0
!
▸ Error installing plugin salesforcedx
I uninstalled the salesforcedx plugin and tried to reinstall it and received same error…
Any ideas on how to recover or am I dead in the water?
Best Answer
If you downloaded the Salesforce CLI during the Salesforce DX Pilot, you likely have version 5.6.X. Unfortunately, this is not upgradable to version 6 of the CLI. You'll have to uninstall. When you go to uninstall, be aware that it was using
heroku
in the binary path name, so you'll need to use this script from Dave Carroll: uninstall Salesforce CLI from Pilot.If you have version 5.7.X or higher, you should be able to upgrade by running
sfdx update
.Hope this helps!