Newer Version Available

This content describes an older version of this product. View Latest

Salesforce CLI Configuration and Tips

Use Salesforce CLI for most development and testing tasks. These tasks include authorizing a Dev Hub org, creating a scratch org, synchronizing source code between your scratch orgs and VCS, and running tests.

You can start using Salesforce CLI right after you install it.

The CLI commands are grouped into top-level topics. For example, the org top-level topic contains commands to create and manage orgs, such as org list, org create sandbox, and org generate password. The config top-level topic contains commands for managing configuration variables.

Run --help at each level to get more information.

Run this command to view all available Salesforce CLI commands:

To see all commands with their flags, run the command with the --json flag: