Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C:\Users\username\AppData\Local\sfdx\client\bin\..\7.110.0-85b006b\bin\sfdx.cmd"' is not recognized as an internal or external command, operable program or batch file. #3471

Closed
CXCAlfo opened this issue Aug 4, 2021 · 4 comments

Comments

@CXCAlfo
Copy link

CXCAlfo commented Aug 4, 2021

Summary

A number of my developers (3 - 2 in India team and 1 in Melbourne team) started getting the SFDX Command not recognised issue yesterday evening. None of them have run sfdx update.

"C:\Users\username\AppData\Local\sfdx\client\bin..\7.110.0-85b006b\bin\sfdx.cmd"' is not recognized as an internal or external command, operable program or batch file.

Steps To Reproduce:

Run any SFDX Comment in terminal window.

Expected result

Command runs successfully

Actual result

"C:\Users\username\AppData\Local\sfdx\client\bin..\7.110.0-85b006b\bin\sfdx.cmd"' is not recognized as an internal or external command, operable program or batch file.

Additional information

I can't get them to post Plugin versions because SFDX Commands wont run.

@yippie
Copy link

yippie commented Aug 4, 2021

This happened to me and one of my co-workers last night also. We are on macOS.

Our work around was to delete the entire Local\sfdx folder then re-install the sfdx CLI. Just reinstalling sfdx did not work until I also deleted the folder.

Some scheduled script or plugin update just hosed SFDX for existing installs it seems

@yippie
Copy link

yippie commented Aug 4, 2021

Probably should cross reference the CLI issue forcedotcom/cli#1104

@smaddox-sf
Copy link
Contributor

Thanks for reaching out on this and for relating it to the other open issue. We are tracking this issue as the CLI issue @yippie correctly linked. Please check out this comment for status info and a workaround -
forcedotcom/cli#1104 (comment)

Closing this issue to consolidate. Please follow forcedotcom/cli#1104 for the latest info on this issue

@suniti-majumdar
Copy link

I was facing this error whenever I tried to run a simple sfdx command in my VS code terminal

"C:\Users\XXXXXXX\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.
I found the below issues, and fix for it. It worked.

  1. I had 2 sfdx folders one in the C:\Program Files\sfdx folder and the other in C:\Users\XXXXXXX\AppData\Local\sfdx.
  2. I uninstalled sfdx-cli from the control panel and deleted sfdx folder from the above paths
  3. Then install sfdxcli from here https://developer.salesforce.com/tools/salesforcecli
  4. set the user variable and system variable for it as C:\Program Files\sf
  5. Then restart vs code and run sf update command in the terminal window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants