# Update Node-RED with a new flow

**URL:** https://discourse.nodered.org/t/update-node-red-with-a-new-flow/93566
**Category:** General
**Created:** [29 November 2024 08:18 UTC](https://discourse.nodered.org/t/update-node-red-with-a-new-flow/93566 "2024-11-29T08:18:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)
#### Post date: [29 November 2024 08:18 UTC](https://discourse.nodered.org/t/update-node-red-with-a-new-flow/93566/1 "2024-11-29T08:18:11Z")

</div>

Hi, was just wondering about the eventual possibilities to let Node-RED update it's own flow

a) Sending a new flow file to Node-RED (I'm thinking via MQTT) and use the file node to save it  
b) Then Node-RED activates a self-restart in some way

Is this maybe already possible to achieve?

---

<div class="post-metadata">

### Author: ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)
#### Post date: [29 November 2024 08:57 UTC](https://discourse.nodered.org/t/update-node-red-with-a-new-flow/93566/2 "2024-11-29T08:57:12Z")

</div>

Check out this [quesion](https://discourse.nodered.org/t/flows-api-to-create-flow-programmatically/93531) talking about the node red [admin api](https://nodered.org/docs/api/admin/methods/).

You can also use the [SendFlow](https://flows.nodered.org/node/@gregoriusrippenstein/node-red-contrib-introspection) node which uses the [/flows](https://nodered.org/docs/api/admin/methods/post/flows/) endpoint to update the node red instance it points to.

---

<div class="post-metadata">

### Author: ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)
#### Post date: [30 November 2024 08:17 UTC](https://discourse.nodered.org/t/update-node-red-with-a-new-flow/93566/3 "2024-11-30T08:17:21Z")

</div>

Very impressive!!

With your nodes it is possible to retrieve a complete flow from a remote host with the "GetFlows" node, transfer it via MQTT and save it to your local host, load it in your local Node-RED instance, make the necessary editing, then transfer it back via MQTT to the "Send Node" to update the active flow on the remote host

Very cool!

EDIT: If you in addition would use the Project feature in your admin computer, you could have a separate project for each remote host you need to maintain in this way. Not as elegant as FlowFuse, more as a "home brewed" solution

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [14 December 2024 08:17 UTC](https://discourse.nodered.org/t/update-node-red-with-a-new-flow/93566/4 "2024-12-14T08:17:35Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
