Newer Version Available
Autocomplete CLI Commands and Flags
Partially type a Salesforce CLI command and then press Tab to autocomplete it. The
autocomplete feature also works on Salesforce CLI flags.
You must install the autocomplete feature before you can use it.
macOS or Linux
- In a terminal, run sf autocomplete.
- Follow the displayed instructions.
- Press one Tab to autocomplete a command and two Tabs to get a list of available commands. After typing a full command, enter -- and then two Tabs to get a list of available flags.
If autocomplete doesn’t work immediately after installation, run sf autocomplete --refresh-cache. Then open a new terminal window.
PowerShell
Windows users can use the autocomplete feature by first installing PowerShell and then following these steps.
- In a PowerShell window, run sf autocomplete powershell.
- Follow the displayed instructions.
- Press one Tab to autocomplete a command and two Tabs to get a list of available commands. After typing a full command, enter -- and then two Tabs to get a list of available flags.
If autocomplete doesn’t work immediately after installation, run sf autocomplete --refresh-cache. Then open a new PowerShell window.