You need to sign in to do that
Don't have an account?
EdCode
'sfdx' is not recognized as an internal or external command, operable program or batch file.
When keying sfdx from cmd or from the VS Code Terminal, I am getting the error: 'sfdx' is not recognized as an internal or external command, operable program or batch file.
Any clue on how to fix this?
Any clue on how to fix this?
At the end, I found the problem:
upon installing Salesforce CLI, the process created an Environment Variable with the name "Salesforce CLI".
By reviewing the screen shots here (https://salesforce.stackexchange.com/questions/163795/sfdx-is-not-recognized-as-an-internal-or-external-command) (provided above by Raj Vakati), I have observed that the Environment variable refered to Salesforce CLI was named "Path". I have therefore tried renaming the Environment variable to "Path" and.... guess what... IT WORKED!
Thank you both, Raj Vakati and Greg Finzer)
All Answers
Refer this link
https://salesforce.stackexchange.com/questions/163795/sfdx-is-not-recognized-as-an-internal-or-external-command
See my detailed instructions on how to setup VS Code for Salesforce:
http://sixfootcoder.blogspot.com/2019/01/setting-up-vs-code-with-salesforce.html
At the end, I found the problem:
upon installing Salesforce CLI, the process created an Environment Variable with the name "Salesforce CLI".
By reviewing the screen shots here (https://salesforce.stackexchange.com/questions/163795/sfdx-is-not-recognized-as-an-internal-or-external-command) (provided above by Raj Vakati), I have observed that the Environment variable refered to Salesforce CLI was named "Path". I have therefore tried renaming the Environment variable to "Path" and.... guess what... IT WORKED!
Thank you both, Raj Vakati and Greg Finzer)
'sfdx' command in command prompt(run as admin) threw error - sfdx is not recognized.
I had multiple Salesforce CLI installed on my system.from my Salesforce CLI, sfdx folder in sytem, ran the uninstall file.
then installed the Salesforce CLI- https://developer.salesforce.com/tools/sfdxcli# (https://developer.salesforce.com/tools/sfdxcli#). Issue got fixed. Hope it helps somebody.
Below command solves my issue
npm install sfdx-cli --global -force