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.
1sf --help // lists all top-level topics
2sf org --help // lists all the topics and commands under "org"
3sf org create --help // lists all the commands in the subtopic "org create"
4sf org create sandbox --help // detailed info about the "org create sandbox" command
5sf org create sandbox -h // quick and short info about the "org create sandbox" commandRun this command to view all available Salesforce CLI commands:
1sf commandsTo see all commands with their flags, run the command with the --json flag:
1sf commands --json