# Is it possible to export flow with command and store in database?

**URL:** <https://discourse.nodered.org/t/is-it-possible-to-export-flow-with-command-and-store-in-database/74634>\
**Category:** General\
**Created:** [3 February 2023 07:07 UTC](https://discourse.nodered.org/t/is-it-possible-to-export-flow-with-command-and-store-in-database/74634 "2023-02-03T07:07:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robindra](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/robindra/32/75471_2.png) [@robindra](https://discourse.nodered.org/u/robindra)\
**Post date:** [3 February 2023 07:07 UTC](https://discourse.nodered.org/t/is-it-possible-to-export-flow-with-command-and-store-in-database/74634/1 "2023-02-03T07:07:41Z")

</div>

Hi All,

I have a query regarding the exporting the flow. There is already option on Node red to export from menu CTR + e through which I am able to export the flow. But, I just want to know is there any way/ package through which we can export the json and store the same in database. So that manually export and saving can skip.

Regards,  
Robindra

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [3 February 2023 08:09 UTC](https://discourse.nodered.org/t/is-it-possible-to-export-flow-with-command-and-store-in-database/74634/2 "2023-02-03T08:09:19Z")

</div>

Have you looked at the admin api [Admin API : Node-RED](https://nodered.org/docs/api/admin/)

---

<div class="post-metadata">

**Author:** ![robindra](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/robindra/32/75471_2.png) [@robindra](https://discourse.nodered.org/u/robindra)\
**Post date:** [3 February 2023 10:12 UTC](https://discourse.nodered.org/t/is-it-possible-to-export-flow-with-command-and-store-in-database/74634/3 "2023-02-03T10:12:42Z")

</div>

@E1cid Thanks for the response.  
Now, I got the API in Admin API section to get the JSON for the nodes.

---

<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:** [4 April 2023 10:12 UTC](https://discourse.nodered.org/t/is-it-possible-to-export-flow-with-command-and-store-in-database/74634/4 "2023-04-04T10:12:51Z")

</div>

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