Importing and exporting in/from Node-RED

Sometimes you may want to use a template in Node-RED or you want to copy a flow from one machine to another.

Instructions

  1. If you want to export just a few nodes from a flow. Mark all the nodes you need first. If you want to export all nodes in a flow, this step can be skipped.

  2. In Node-RED press on the three bars on the right side and then click on export or import:

    Untitled

  3. For Import:

    1. you can either choose a json file from your local disk or paste the json file directly into the field below.
    2. Then you have to decide in which flow the nodes shall be pasted. A new flow or the current one?

    Untitled

    For Export:

    1. you have to decide from where you want to export: the selected nodes, the current flow or all flows at once. You can also select nodes in this window by clicking on them.
    2. Then you have two options: either to download a json-file or just copy to clipboard.

    Untitled

Last modified October 5, 2022: Historian article (#107) (5f30dc0)