Newer Version Available

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

Autocomplete CLI Commands, Parameters, and File Names

Partially type a Salesforce CLI command and then press Tab to autocomplete it, or press Tab twice to see all the available commands. The autocomplete feature also works on Salesforce CLI parameters and file names.

Autocomplete is not currently available on computers running Windows.

Note

Before you can use the autocomplete feature, install it using these steps.

  1. Make sure you’re on the latest version of the CLI. Run sfdx plugins:install salesforcedx@latest.
  2. Run sfdx plugins:install @oclif/plugin-autocomplete.
  3. Run sfdx autocomplete.
  4. Follow the displayed instructions.

If autocomplete does not work immediately after installation, run sfdx autocomplete --refresh-cache. Then open a new terminal window.