You need to sign in to do that
Don't have an account?
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.
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.
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 )
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?
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.