Bad idea to batch install plugins.
If ones not compatible with your version of nodebb, you're in for a world of hurt diagnosing which plugin is giving you issues.
I'm trying to set up a staging environment, but a lot of my setup depends on my settings. I don't want to have to duplicate them every time I change something. Is there a way to sync all ACP, perhaps in a file?
Edit: I also want to sync the installed plugins, but I can already do that with package.json.
I believe you could do this with a quick database script. All of the ACP settings AFAIK are held in the
Hmm, I guess that would be the way then. Are the ones in the config object also plugin options, or only general ones?
Only options in core are stored there. Plugin options are left up to the plugins, though most would be in
@PitaJ Ahh... Yeah this was looking fine, but I've encountered a problem with exporting the local login setting. Earlier it was in the config object, but now that has been obsoleted and it's a "group privilege". I find the database structure of groups and their privileges a big confusing. Do you think you could help me figure out how to export that general setting in the current situation?
You should be able to use
privileges.global.list to list all global privileges and write them to a file. Then load them back and use
privileges.global.give to assign them back.
Thank you, I didn't try that approach, instead, I realized I can change the settings directly from the code. So I'm baking in my settings into my plugin and setting them in the init.