Skip to main content

Hi All, 

 

I have downloaded the salesforce CLI software in windows and installed in my Pc but when I am trying to deploy in VS code its showing error and I tried to give a run code in  Command prompt as " SFDX --version" and "Update CLI" but am encountering an error as"  

 

 "C:\Users\Hi\AppData\Local\sfdx\client\bin\..\7.209.6-8ba3197\bin\sfdx.cmd"' is not recognized as an internal or external command,

operable program or batch file." 

 

and I also tried to add the path in system environment variables but same error recieving.

 

Please anyone help me out of this??

 

#SFDX CLI

1 Antwort
  1. 19. Feb. 2024, 09:26

    Hi @Kanaka Deepak BYSANI,

    1. Verify if Salesforce CLI is installed successfully or not. If Salesforce CLI is already installed, check the version number by running the command "sfdx --version" in the terminal. Make sure it is the latest version.

    2. Add the path of the Salesforce CLI to the environmental variables. If updating Salesforce CLI does not fix the issue, try deleting the sfdx folder located at "C:\Users\username\AppData\Local\sfdx" and then reinstalling Salesforce CLI.

     

    If none of the above steps work, try restarting VS Code and your machine.

    Related:https://developer.salesforce.com/forums/?id=9062I000000DKBwQAO

    https://github.com/forcedotcom/salesforcedx-vscode/issues/3459

    https://github.com/forcedotcom/salesforcedx-vscode/issues/2869

    https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007T4P9DSAV

    I hope this helps!

     

    Thanks

    Saurabh

0/9000