Install the Salesforce CLI

Before you set up your editor and environment for Salesforce DX tools, install the Salesforce CLI. If you want to test components without deploying them to an org, use Local Dev (Beta) or the Local Development Server. We recommend installing the new Local Dev (Beta) experience for improved testing and previewing capabilities. The Local Development Server may be deprecated in a future release.

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