Newer Version Available

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

Autocomplete CLI Commands, Flags, and File Names

Partially type a Salesforce CLI command and then press Tab to autocomplete it. The autocomplete feature also works on Salesforce CLI flags and file names.

You must install the autocomplete feature before you can use it.

macOS or Linux

  1. In a terminal, run sf autocomplete.
  2. Follow the displayed instructions.
  3. Press one Tab to autocomplete a command and two Tabs to get a list of available commands.

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.

  1. In a PowerShell window, run sf autocomplete powershell.
  2. Follow the displayed instructions.

If autocomplete doesn’t work immediately after installation, run sf autocomplete --refresh-cache. Then open a new PowerShell window.