# Projects - updating flows on multiple devices - how to auto pull?

**URL:** <https://discourse.nodered.org/t/projects-updating-flows-on-multiple-devices-how-to-auto-pull/42211>\
**Category:** General\
**Created:** [7 March 2021 18:40 UTC](https://discourse.nodered.org/t/projects-updating-flows-on-multiple-devices-how-to-auto-pull/42211 "2021-03-07T18:40:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![grawsom](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grawsom/32/53070_2.png) [@grawsom](https://discourse.nodered.org/u/grawsom)\
**Post date:** [7 March 2021 18:40 UTC](https://discourse.nodered.org/t/projects-updating-flows-on-multiple-devices-how-to-auto-pull/42211/1 "2021-03-07T18:40:58Z")

</div>

Hi, as headline is saying - I'm looking for some hints to how this could be done.  
Slowly learning Node-red.

My setup is RPI 3 with cloned card so is starting on same level every time, but sometimes you find errors, do stuff in a better way etc. and need to update/tune the flows.  
But here the problem comes, I'm slowly adding new devices to the "farm" and this makes it even more time consuming when having updates. Are having all most 40 devices

I'm running "all most" same setup on every device, only some configs thats different, and that I'm also trying to see if I can fix with "ENV varialbles etc.".

I have started to use Projects, and it covers must of my solution.

Here comes the question (sorry for the long intro)

**How can you automatic do the pull stuff ?** - (am rebooting the device ones a day - just for info)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [7 March 2021 19:27 UTC](https://discourse.nodered.org/t/projects-updating-flows-on-multiple-devices-how-to-auto-pull/42211/2 "2021-03-07T19:27:35Z")

</div>

As it is git under the hood, 1 way, you could write a simple bash script to pull your flow and then start node-red?

---

<div class="post-metadata">

**Author:** ![grawsom](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grawsom/32/53070_2.png) [@grawsom](https://discourse.nodered.org/u/grawsom)\
**Post date:** [7 March 2021 19:53 UTC](https://discourse.nodered.org/t/projects-updating-flows-on-multiple-devices-how-to-auto-pull/42211/3 "2021-03-07T19:53:14Z")

</div>

Learning - so just write a simple bash is out of my league - maybe some hints to find info for that, as I'm trying to learn on the way.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [7 March 2021 19:58 UTC](https://discourse.nodered.org/t/projects-updating-flows-on-multiple-devices-how-to-auto-pull/42211/4 "2021-03-07T19:58:55Z")

</div>

Here is a simple off the top of head example...

```bash
cd ~/.node-red/projects/<name-of-project>
git fetch
git pull
node-red

```

Lots of examples on the web. search "bash script to pull from github"

---

<div class="post-metadata">

**Author:** ![grawsom](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grawsom/32/53070_2.png) [@grawsom](https://discourse.nodered.org/u/grawsom)\
**Post date:** [7 March 2021 20:01 UTC](https://discourse.nodered.org/t/projects-updating-flows-on-multiple-devices-how-to-auto-pull/42211/5 "2021-03-07T20:01:36Z")

</div>

Thanks. I will try and play with that

---

<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:** [6 May 2021 20:01 UTC](https://discourse.nodered.org/t/projects-updating-flows-on-multiple-devices-how-to-auto-pull/42211/6 "2021-05-06T20:01:37Z")

</div>

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