Install the Salesforce CLI
Before you set up your editor and environment for Salesforce DX tools, install the Salesforce CLI. If you want to be able to test components without deploying them to an org, install the local development server.
Use the Salesforce CLI to synchronize source code between your Salesforce orgs and your version control system.
-
To install the CLI, follow the instructions for your operating system in the Salesforce DX Setup Guide, then return here.
-
To work with Lightning web components, you need version 45 or greater of the Salesforce CLI. Check the installed version.
The command outputs version numbers.
If you had a prerelease version of the CLI installed, run this command to update it.
sf plugins:install salesforcedx@latest