Newer Version Available

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

Salesforce CLI Configuration and Tips

Use the Salesforce command-line interface (CLI) for most Salesforce DX 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.

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 commands in the force topic.

1sfdx force:doc:commands:list