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 resetAfter 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 --reinstallTo remove all package manager-related files and directories (node_modules, package.json, yarn.lock, package-lock.json) from Salesforce CLI's internal data directory, specify the --hard flag.
1sf plugins reset --hard