+ Start a Discussion
Steve_FinlaySteve_Finlay 

Visual studio code Salesforce cli integration not working

I have installed the Salesforce CLI package and it is working fine from the terminal window.
I have installed the Salesforce Extensions package into Visual Studio Code and all looks fine.
However when I enter Command-Shift-P and type something like SFDX: Create Package I get a notification to install the Salesforce CLI package.
All the sfdx commands work fine from with VS Code’s terminal window.

I am at a loss as to what is wrong. 
I am running on a Mac and all the help articles are for Windows are direct you towards missing or incorrect Path statements. Not much help for a Mac user.

I have tried completely removing the SFDX package (via rm statements from terminal) along with removing the Salesforce extensions from VSCode. After reinstalling all this - same problem.

Any ideas or help would be appreciated.
 
Alain CabonAlain Cabon
There is an alternative by installing the Salesforce CLI with NPM.

Install the CLI with npm (+ node): https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm

I prefer to use this technique even if a .exe (windows) or a package (mac) seems easier.
There are some problems afterwards (interferences with a preexisting node installation in different folders).

c:\>npm list -g --depth 0

C:\Users\<your user>\AppData\Roaming\npm    ( different on Mac surely )

...
+-- node@11.9.0
+-- npm@6.11.3
+-- sfdx-cli@7.23.1
...

( this command is very slow but it is a easy verification for the folder of the global modules installed with npm )
Steve_FinlaySteve_Finlay
As far as I can see the Salesforce CLI is installed fine as it works from the Mac Terminal and from the terminal within Visual Studio Code. Just seems to be the Salesforce VS Code CLI plug-in/extension doesn’t find it. Stephen FinlayM: 0419 615 896W: https://about.me/StephenFinlay
Steve_FinlaySteve_Finlay

I've tried uninstalling everything and starting from srcatch again - same result VSCode tells me that the Salesforce CLI is not installed when I try Cmd-Shift-P and select SFDX Create Project.
Installed under Windows - works fine as per the instructions in Trailhead.

Any Mac users out there actually get this to work?

saurabh shukla 17saurabh shukla 17
Did anyone find a solution to this even i am facing the same issue. I am not able to find the SFDX commands under the command palette when pressing Ctrl+Shift+P. But I can do everything through the terminal. It was working before and i completed the LWC superbadge last week using the same and due to some update in between this broke.

Could anyone please let me know what is the issue. Below is the error message:

Command 'SFDX: Create Project' resulted in an error (command 'sfdx.force.project.create' not found)

PS: I tried reinstalling everything from jdk, vscode, cli but no luck. Any help would be appreciated.
Sushiil ShettigarSushiil Shettigar
What ended up working for me was uninstalling the VS Code extensions, manually removing the leftover files (Terminal: rm -rf ~/.vscode/extensions), closing and reopening VS Code, and then reinstalling the extensions.
Pravudatta MohantyPravudatta Mohanty
in npm\node_modules\sfdx-cli\bin folder, rename run.cmd to sfdx.cmd