Let's assume I have 10 flows (in 10 tabs). I would like to programmatically create a new flows.json file for a subset of the flows, in order to run them in a second Node-RED instance. What's the recommended way how to do this?
I see two options:
parse original flows.json file and create a new flows.json with just a subset of the flows
call GET /flow/:id for the flows needed in the new file and manually create a new file of the the results
Any thoughts or suggestions, or any options I missed?
I suggest this, it should be achievable with a series of requests using the HTTP Request node, finishing off with the Write File node - removing the need to do anything manual.
Thanks @marcus-j-davies . JFYI: it's not requirement to do it from a flow itself, it's completely fine to do it from outside Node-RED. However, in case I can do it from Node-RED I will also be able to do it from the outside.