# How node-red flow to code?

**URL:** <https://discourse.nodered.org/t/how-node-red-flow-to-code/47513>\
**Category:** General\
**Created:** [23 June 2021 07:57 UTC](https://discourse.nodered.org/t/how-node-red-flow-to-code/47513 "2021-06-23T07:57:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [23 June 2021 07:57 UTC](https://discourse.nodered.org/t/how-node-red-flow-to-code/47513/1 "2021-06-23T07:57:44Z")

</div>

Dear All :

Like title, How to generated the code ?

Thank u.

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [23 June 2021 08:04 UTC](https://discourse.nodered.org/t/how-node-red-flow-to-code/47513/2 "2021-06-23T08:04:26Z")

</div>

A flow is represented in a format called JSON

Chose **Export** from the menu (while on the flow you want to share), click **Copy to clipboard** , then in a forum post click on the **\</\>** and paste your clipboard contents in-between the triple backticks that show as below...

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/f/6f2a646faad62e7cab2803284dab8529f1206678.png)

---

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [23 June 2021 08:11 UTC](https://discourse.nodered.org/t/how-node-red-flow-to-code/47513/3 "2021-06-23T08:11:03Z")

</div>

Dear Sir :

I see.

Thank u .

---

<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:** [22 August 2021 08:11 UTC](https://discourse.nodered.org/t/how-node-red-flow-to-code/47513/4 "2021-08-22T08:11:59Z")

</div>

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