1

I have connecting command prompt to salesforce using below commands.

D:
cd salesforce CLI
cd bin
sfdx force:auth:web:login -d -a DevHub

But i cant able to connect Visual studio code to salesforce. i have installed visual studio code in my system. at the same time Salesforce CLI Integration and Salesforce Extension Pack also installed. but selecforce connecting commands are not showing.

how to connect visual studio code to salesforce. And what are the commands we need to pass.

  • There are no commands to pass; once everything is installed, it should just work. Have you (a) restarted VS Code and/or (b) restarted your computer? Also, if Salesforce CLI is not in your %PATH%, VS Code will not be able to work with it. I recommend restarting and/or reinstalling Salesforce DX to see if that fixes things. – sfdcfox Jan 17 at 6:43
0

I had the same issue of not connecting to salesforce but I followed below link and was able to reinstall everything.

change the org to your org in project-scratch-def.json and use SFDX: Authorize an org https://trailhead.salesforce.com/content/learn/projects/quickstart-vscode-salesforce/start-vscode

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.