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.

  1. To install the CLI, follow the instructions for your operating system in the Salesforce CLI Setup Guide, then return here.

  2. To work with Lightning web components, we recommend the latest version of Salesforce CLI. Check the installed version.

    The command outputs version numbers. For example:

See Also