Salesforce CLI is installed in my machine and set PATH, but when i'm running sfdx command in cmd, it throws error. I attached the snapshot of same. So many times I reinstalled it but nothing works.
After running the command can you try uninstalling Salesforce CLI and Install it again. I faced the same issue but worked for that command. Follow these steps after uninsalling plugins Select Start > Control Panel > Programs > Programs and Features. Select SFDX CLI, and click Uninstall. Inside your home directory, delete the .config\sfdx directory. If the CLI is still installed, delete the %LOCALAPPDATA%\sfdx directory in Program Files. Also Close your VS Code and start again if opened Thanks Anuj Sahu
After running the command can you try uninstalling Salesforce CLI and Install it again. I faced the same issue but worked for that command. Follow these steps after uninsalling plugins Select Start > Control Panel > Programs > Programs and Features. Select SFDX CLI, and click Uninstall. Inside your home directory, delete the .config\sfdx directory. If the CLI is still installed, delete the %LOCALAPPDATA%\sfdx directory in Program Files. Also Close your VS Code and start again if opened Thanks Anuj Sahu
After running the command can you try uninstalling Salesforce CLI and Install it again. I faced the same issue but worked for that command.
Follow these steps after uninsalling plugins
Select Start > Control Panel > Programs > Programs and Features.
Select SFDX CLI, and click Uninstall.
Inside your home directory, delete the .config\sfdx directory.
If the CLI is still installed, delete the %LOCALAPPDATA%\sfdx directory in Program Files.
Also Close your VS Code and start again if opened
Thanks
Anuj Sahu
All Answers
Thanks in Advance.
Please use this command and run it: sfdx plugins:uninstall salesforcedx
This will solve your problem I guess.
if it helps you please mark this as best answer.
Thanks
Anuj Sahu
You can find all related inks here:
https://newstechnologystuff.com/2018/03/16/sfdx-a-new-way-of-development/
After running the command can you try uninstalling Salesforce CLI and Install it again. I faced the same issue but worked for that command.
Follow these steps after uninsalling plugins
Select Start > Control Panel > Programs > Programs and Features.
Select SFDX CLI, and click Uninstall.
Inside your home directory, delete the .config\sfdx directory.
If the CLI is still installed, delete the %LOCALAPPDATA%\sfdx directory in Program Files.
Also Close your VS Code and start again if opened
Thanks
Anuj Sahu
Deleted %LOCALAPPDATA%\sfdx directory in Program Files, earlier it was not deleted.