# Update 'project' from a flow

**URL:** <https://discourse.nodered.org/t/update-project-from-a-flow/19908>\
**Category:** General\
**Created:** [4 January 2020 16:33 UTC](https://discourse.nodered.org/t/update-project-from-a-flow/19908 "2020-01-04T16:33:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pax](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@pax](https://discourse.nodered.org/u/pax)\
**Post date:** [4 January 2020 16:33 UTC](https://discourse.nodered.org/t/update-project-from-a-flow/19908/1 "2020-01-04T16:33:47Z")

</div>

Is there to have a flow initiate a git pull and thus update itself?

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [4 January 2020 20:58 UTC](https://discourse.nodered.org/t/update-project-from-a-flow/19908/2 "2020-01-04T20:58:22Z")

</div>

In theory, from an exec node but for node-RED to detect that might be harder as you either have to confirm it by hand in the editor, or restart node-RED. And have a flow call a restart of its own service or the nodejs process gets ugly rather soon due to forking processes and which parent owns which. The cleanest would likely be to have Node-RED do a pull, then issue a restart of the machine and have Node-RED started on boot.

---

<div class="post-metadata">

**Author:** ![pax](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@pax](https://discourse.nodered.org/u/pax)\
**Post date:** [13 January 2020 11:42 UTC](https://discourse.nodered.org/t/update-project-from-a-flow/19908/3 "2020-01-13T11:42:57Z")

</div>

Thanks... I was actually hoping for something more direct. Since the Editor is making calls to do Git I was hoping there was a specific API that was accessible by a Flow (either specific node - or just cobble together with http request nodes - or whatever).

Since one can use the editor to do a Pull - which restarts the flow - I would think this was possible...

BTW, I'm running node-red in a network of Pi 4's, and and also in a few K8S clusters... I'm hoping on migrating the PI's over to K3S soon...
