Newer Version Available

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

Quickly Uninstall All Non-Core Plugins

Sometimes you want to quickly uninstall all the non-core Salesforce CLI plugins that were installed after you first installed the CLI.

Examples of non-core plugins include:

  • Third-party plugins that you explicitly installed with the plugins install command.
  • JIT plugins that were automatically installed when you ran one of their commands.
  • Local plugins that you linked with the plugins link command.

To uninstall all non-core plugins, run this command.

1sf plugins reset

After the command finishes, you’re left with only the core Salesforce CLI plugins, as if you had installed the CLI from scratch. 

To uninstall, then reinstall, all non-core plugins, specify the --reinstall flag.

1sf plugins reset --reinstall

To remove all package manager-related files and directories (node_modulespackage.jsonyarn.lockpackage-lock.json) from Salesforce CLI's internal data directory, specify the --hard flag.

1sf plugins reset --hard