Specify Topics and Commands in Any Order

When you type a command at a terminal or command prompt, you can enter the topics and commands in any order. Salesforce CLI determines which command you mean and automatically runs it without errors.

For example, let's say you want to log into an org using JWT but you forgot the exact command. All of these commands work without returning a Command not found error:

If you remember only parts of a command, run the partial command anyway to see a list of all the commands that contain the parts. Use arrows to highlight the one you want, then press return to choose it.

For example, when you type sf list, you see this dialogue where you can choose the command you want:

To narrow down a long list of possible commands, provide a flag. For example, if you run sf list --all, it displays only the env list and org list commands because they’re the only ones that have the --all flag.

Each command still has a canonical signature, which we use in the --help examples and to organize the Salesforce CLI Command Reference.