Newer Version Available

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

Salesforce CLI Configuration and Tips

Use Salesforce command-line interface (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 the CLI right after you install it.

The CLI commands are grouped into top-level topics. For example, the force top-level topic is divided into topics that group commands by functionality, such as the force:org commands to manage your orgs. The config top-level topic contains commands for managing configuration values.

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

1sfdx --help                   // lists all top-level topics
2sfdx force --help             // lists all the topics under force
3sfdx force:org --help         // lists all the commands in the topic force:org
4sfdx force:org:open --help    // detailed info about the force:org:open command

Run this command to view all available Salesforce CLI commands:

1sfdx commands

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

1sfdx commands --json