Disabling flows during startup

Hello everybody,

I'm running a Node-RED project with mutliple flows. I would like to enable/disable some flows during startup. I've seen, that this is possible using the admin web interface. Is this possible using settings.js, the command-line, or the API?

What do you mean by disable during startup? Do you mean you want to startup with certain flows disabled and they should remain disabled, or you just want them disabled temporarily during startup, which I think is what the question implies, but doesn't make sense.

I'm looking for a method to disable flows permanently as long as Node-RED is running. These flows should be selected during startup.

If there is a method to disable/enabled flows within Node-RED (using a special node), this would be sufficient, too.

How are you proposing that that they are selected during startup? At what point during startup do you want to be able to select them? Or do you mean you want to select them before startup by setting some configuration or similar.

Your aware off Enable/Disable for the flow (double click on flow tab) select Enable/Disable i buttom left (RadioButton)

@Colin Currently there is the setting disableFlows in settings.js. It takes the values true and false. I think this should be modified, that is takes an array of strings and regex, too. For example:

disableFlows = [ /^Development.*/, 'Feature X' ];

When Node-RED starts, it should iterate over all flows and disable all flows, which names match the regular expressions or have a name equal to the string value.