Deploy new flows to a remote machine

You can use the admin http api to do an HTTP Post of your flow json file to a remote Node-RED instance: https://nodered.org/docs/api/admin/methods/post/flows/

For example:

curl -vX POST http://my-remote-node-red-server.com -d @flows.json --header "Content-Type: application/json"

should do it.

One slight complication is if your flow includes any credentials stored in your flows_creds.json file. There's not quick and easy way to send that via the admin http api.

1 Like