# Flows gets updated and saved after deploying

**URL:** https://discourse.nodered.org/t/flows-gets-updated-and-saved-after-deploying/42314
**Category:** General
**Created:** [9 March 2021 08:51 UTC](https://discourse.nodered.org/t/flows-gets-updated-and-saved-after-deploying/42314 "2021-03-09T08:51:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Syedabd](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@Syedabd](https://discourse.nodered.org/u/Syedabd)
#### Post date: [9 March 2021 08:51 UTC](https://discourse.nodered.org/t/flows-gets-updated-and-saved-after-deploying/42314/1 "2021-03-09T08:51:24Z")

</div>

Hi,

Can anyone help me out with how and what is the process? When a user creates a flow and deploys it.

**In other words,**  
Once after user deploys the flows, it appears in the user directory as flows\_flow\_name.json, all the flows get stored in one JSON file.  
I would like to know how all flows get saved in one file after deployed, the process behind it

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [9 March 2021 09:19 UTC](https://discourse.nodered.org/t/flows-gets-updated-and-saved-after-deploying/42314/2 "2021-03-09T09:19:33Z")

</div>

What do you mean by 'the process behind it"? Do you mean the admin api calls that are made by the editor or what?

---

<div class="post-metadata">

### Author: ![Syedabd](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@Syedabd](https://discourse.nodered.org/u/Syedabd)
#### Post date: [9 March 2021 09:40 UTC](https://discourse.nodered.org/t/flows-gets-updated-and-saved-after-deploying/42314/3 "2021-03-09T09:40:40Z")

</div>

I mean when the flows are deployed,how the flow file is generated in the user directory

---

<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: [9 March 2021 09:45 UTC](https://discourse.nodered.org/t/flows-gets-updated-and-saved-after-deploying/42314/4 "2021-03-09T09:45:33Z")

</div>

do you really want to know the full process from converting the graphical elements into JSON and how it is transmitted and how it is writtten to file and how the runtime loads the JSON into `node` ready for execution?  
or do you want to emulate the transmission of your own flows without using the editor?

If you want to know the full process - then look at the source code on github

If you simply want to "do it" (i.e. transmit a flow to your node-red without using the editor), then read the docs and search the forum for "admin api"

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [9 March 2021 10:50 UTC](https://discourse.nodered.org/t/flows-gets-updated-and-saved-after-deploying/42314/5 "2021-03-09T10:50:29Z")

</div>

@Syedabd - the word 'flow' has many uses. You can link a series of nodes together and that is called a flow. You can have more than one 'flow' in one editor `tab`, or spread them across many editor `tab`s.

All those tabs with all your seperate node flows are stored in one `flow` file when you hit deploy.

I hope that helps.

---

<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: [8 May 2021 10:51 UTC](https://discourse.nodered.org/t/flows-gets-updated-and-saved-after-deploying/42314/6 "2021-05-08T10:51:22Z")

</div>

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