How to auto enable godot plugins from the commandline?

There is EditorInterface.set_plugin_enabled(), but to use that function it has to be in an enabled plugin. And to enable a plugin I have to touch the gui. I want to only use the cli.

Is there a way that works without enabling plugins so I can automate plugin enabling without using the gui?

I don’t like manually editing the project.godot ini file, does godot expose an api for this?

A plugin’s purpose is to be used in the GUI Editor. It is not made for runtime. Can explain what you are trying to do?

Even if you quit, plugins remain enabled once you enable them.

I want to make a script that enables all of my godot plugins in a new project, automatically without having to press a gui button. I want a cli script that does this, without fiddling with the interface.

It’s easy to make a script to copy my plugin folders into /addons in a new project but I want to have some gdscript that auto enables them too.

After that I want to make gdscript that uses ProjectSettings.set_setting and ProjectSettings.save() to automatically set a new project’s settings to my preferred settings.

It appears that ProjectSettings.save has to be used by an editor plugin.

I want to do all of this without having to parse and edit the ini file, because that’s fragile. I rather use whatever apis godot exposes for this.

I make a lot of new projects, and I want to automate setting project settings, and enabled plugins.
I have already written a script that edits the project.godot ini file, for both of these, but I don’t think that is robust.

Godot at the moment does not have a way of having addon appear across projects automatically, but there is a proposal out there you can add your voice to,

That said, what I do I have a plugin manager installed (itself us a plugin). So when I create a new project, I copy the plugins to addons I can easily enable and reset plugins from that, Example is this one.

https://godotengine.org/asset-library/asset/1826

You may also lok at this project:

1 Like