Salesforce CLI Super Powers
Salesforce CLI includes these features and commands that are particularly useful as you develop your plugin. Run the commands with the --help
flag to get more information.
- Command and Flag Autocomplete
The Salesforce CLI autocomplete feature predicts and suggests possible command or flag completions after you press the tab key while typing a CLI command in a terminal. This feature helps you save time and effort by reducing the amount of typing required. See Autocomplete Salesforce CLI Commands and Flags for information about configuring and using it.
sf search
Return a list of Salesforce CLI commands that you can scroll through or search and view the command summaries.
sf plugins inspect <my-plugin>
Show the properties of an installed plugin, such as the version, GitHub home page, commands, and dependencies. For example,
sf plugins inspect org
.sf plugins discover
Show a list of third-party plugins that you can install into Salesforce CLI. These plugins aren't created by Salesforce, so make sure that you trust their creators or have reviewed the source code. Install the plugins at your own risk.
sf which <command>
Show the plugin that contains a particular command. For example,
sf which org create scratch
.sf plugins reset
Remove all user-installed and linked plugins.
sf whatsnew
Show the Salesforce CLI release notes for the currently installed or previous version.
sf commands
List all the available Salesforce CLI commands.
sf doctor
Gather CLI configuration data and run diagnostic tests to discover and report potential problems in your environment. See Use the Doctor to Troubleshoot Problems and Integrate Your Plugin With the
doctor
Command