# How to transfer flows including package.json

**URL:** https://discourse.nodered.org/t/how-to-transfer-flows-including-package-json/54183
**Category:** General
**Created:** [23 November 2021 22:19 UTC](https://discourse.nodered.org/t/how-to-transfer-flows-including-package-json/54183 "2021-11-23T22:19:40Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![mkilivan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mkilivan/32/51489_2.png) [@mkilivan](https://discourse.nodered.org/u/mkilivan)
#### Post date: [23 November 2021 22:19 UTC](https://discourse.nodered.org/t/how-to-transfer-flows-including-package-json/54183/1 "2021-11-23T22:19:40Z")

</div>

Hi,

If I wish to transfer the complete flows into a new machine then;

1. I can download the `flow.json` file using the editor. Menu -\> Export or `Ctrl/⌘-e` shortcut and import it from the new machine using the editor. No shell access is required. Great!

2. I also need to transfer `package.json` and run `npm install` in the `.node-red` folder. This will install all necessary nodes.

The problem is that the second step requires shell access. Is it possible to export/import (or backup/restore) the entire flows using the editor?

Many thanks

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [23 November 2021 22:57 UTC](https://discourse.nodered.org/t/how-to-transfer-flows-including-package-json/54183/2 "2021-11-23T22:57:53Z")

</div>

Though I am guessing I believe you are on an Apple?

Could you confirm which O/S (Computer?) you are using as this may have bearing on how to solve the problem.

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [23 November 2021 23:19 UTC](https://discourse.nodered.org/t/how-to-transfer-flows-including-package-json/54183/3 "2021-11-23T23:19:25Z")

</div>

You also need `flow_creds.json` and the encryption key used to secure this file. That can be found in the `.config.runtime.json` file if you are using the automatically generated key or in `settings.js` if you have manually set one.

All of these files will be in the `.node-red` folder (the ones starting with a leading `.` will be hidden by default)

---

<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: [24 November 2021 07:26 UTC](https://discourse.nodered.org/t/how-to-transfer-flows-including-package-json/54183/4 "2021-11-24T07:26:34Z")

</div>

I have been wondering about this too. Perhaps a Download Backup option which downloads something like a zip file, containing everything in the user folder except node\_modules.

---

<div class="post-metadata">

### Author: ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)
#### Post date: [24 November 2021 17:41 UTC](https://discourse.nodered.org/t/how-to-transfer-flows-including-package-json/54183/5 "2021-11-24T17:41:31Z")

</div>

What about the flow that Paul Reed published. [node-RED Backup Flow](https://discourse.nodered.org/t/node-red-backup-flow/25033)

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [24 November 2021 22:57 UTC](https://discourse.nodered.org/t/how-to-transfer-flows-including-package-json/54183/6 "2021-11-24T22:57:55Z")

</div>

I understand the request, but doubt that going to happen, as it would expose both the credentials and the key to decrypt them via the browser, which is a VERY BAD IDEA

---

<div class="post-metadata">

### Author: ![mbonani](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mbonani/32/10631_2.png) [@mbonani](https://discourse.nodered.org/u/mbonani)
#### Post date: [25 November 2021 00:46 UTC](https://discourse.nodered.org/t/how-to-transfer-flows-including-package-json/54183/7 "2021-11-25T00:46:06Z")

</div>

I'm wondering if the projects feature can help with that

---

<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: [25 November 2021 07:30 UTC](https://discourse.nodered.org/t/how-to-transfer-flows-including-package-json/54183/8 "2021-11-25T07:30:54Z")

</div>

> [@hardillb](#):
>
> it would expose both the credentials and the key to decrypt them via the browser, which is a VERY BAD IDEA

Good point, I withdraw my suggestion.

---

<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: [24 January 2022 07:31 UTC](https://discourse.nodered.org/t/how-to-transfer-flows-including-package-json/54183/9 "2022-01-24T07:31:26Z")

</div>

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