Hi All :). Welcome again and in this post, we are going to learn how to setup Visual Studio and Salesforce DX.
You can download
Download the Salesforce CLI and install into your machine. Download for the appropriate Operating system.
| Operating System | Link to Installer |
| macOS | https://sfdc.co/sfdx_cli_osx |
| Windows 32-bit | https://sfdc.co/sfdx_cli_win |
| Windows 64-bit | https://sfdc.co/sfdx_cli_win64 |
| Debian/Ubuntu 64 | https://sfdc.co/sfdx_cli_linux Download the archive from one of the URLs in the manifest, extract the archive, then run the ./install script. |
| Debian/Ubuntu x86 | https://sfdc.co/sfdx_cli_linux_x86 Download the archive from one of the URLs in the manifest, extract the archive, then run the ./install script. |
After you have installed the Visual Studio Code in your machine. Go to below link and install the extension.
If it asks to open with VS code then click “Open with Visual Studio Code”
https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode

After you have done all the above steps, click on below link and install the extension. If it
https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode-lwc

Open the
Once you have successfully installed the latest version of Salesforce run the below command to update the CLI
Once you have done all above steps and you are getting the output in your command like above image that means you have done each and every installation in a correct way. Next step is to start working with Salesforce DX and Lightning Web Components.
Open Visual Studio, go to Command Palette (Use combination of


Next step is to authorize a dev hub org and associate to the project.
Open the Command palette and then find “sfdx: authorize a Dev Hub” and then select the command.

Login into your DevHub Org and navigate to Setup -> Dev Hub -> Enable Dev Hub.

After you enabled the dev hub org in your org, next step is to create the default scratch org. Go to command palette in visual studio code and find “

above command will create a default scratch org associated with your Dev Hub Org.
Go to command palette and find “


Open Command Palette and run “sfdx:push source to default scratch org“
Open Command Palette and run “sfdx:open default orgs“.