Disable IDEA plugins in command line or through a API


Is there a command line parameter to disable any plugin, bundled or external when launching intellij from command line ? If not a and API to disable plugins so that they are not active when the IDE is running.



I don't see any parameter that allows doing it. There is the disableNonBundledPlugins argument (see https://www.jetbrains.com/help/idea/working-with-the-ide-features-from-command-line.html#arguments), but it doesn't allow to disable specific plugins.

Disabling plugins may be achieved with com.intellij.ide.plugins.PluginManager.disablePlugin(), but it may require IDE restart.


As in Karol Lewandowski's answer mentioned above, a freezing IDE can be started from command-line with the argument disableNonBundledPlugins. In most cases the IDE will start without issues.
Then you can open settings, disable or uninstall the freezing plugin and restart the IDE in normal mode. That's the cleanest way to fix issues with plugins.


Please sign in to leave a comment.