sf gives error '"-S"' is not recognized as an internal or external command, operable program or batch file. #3150
Labels
bug
Issue or pull request that identifies or fixes a bug
investigating
We're actively investigating this issue
validated
Version information for this issue has been validated
Summary
As of cli 2.69.14 on Windows, running a command like
sf data:query...
gives error'"-S"' is not recognized as an internal or external command, operable program or batch file.
Steps To Reproduce
With cli 2.67.7 installed in VS Code, a command like
sf data:query...
works as expected.I upgraded @salesforce/cli to 2.69.14, and after that, the
sf data:query...
command gives error'"-S"' is not recognized as an internal or external command, operable program or batch file.
Expected result
Command should run without error.
Actual result
Command produces an error.
Additional information
It looks to me like the change is due to this change in
<path>\npm\sf.cmd
.In 2.67.7, it looks like this:
In 2.69.14, it looks like this (note the introduction of
-S.exe
. This is due to the change inhttps://github.com/salesforcecli/cli/blob/main/bin/run.cmd
to introduce the--no-deprecation
flagThis npm /cmd-shim issue comment might be relevant:
System Information
The text was updated successfully, but these errors were encountered: