SalesforceDX Stopped working

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!


Equivalent instructions for Windows:

  1. Uninstall SFDX CLI
    enter image description here
  2. For good measure, uninstall the Heroku CLI as well enter image description here
  3. delete %HOMEPATH%\.config\sfdx directory if it exists
  4. Reinstall from https://developer.salesforce.com/tools/sfdxcli
  5. Trigger the CLI to check for updates - sfdc update enter image description here