Importing and exporting a flow definition
In this section, you will import and export the flow definition you have created. Usually, when developing, it is necessary to back up the source code and version control. You may also import source code created by others, or export your own source code and pass it on to others. Node-RED has a similar concept. In Node-RED, it is a normal practice to import and export the flow itself instead of importing or exporting the source code (for example, the template node described previously).
So, first, let's export the flow we have created so far. This is easy to do:
- Simply select Export from the Edit dialog under the Main menu of the Node-RED Flow Editor.
When the Export menu is displayed, you can only select the current flow or all your flows. You can also select raw JSON, without indentation, or formatted JSON, with indentation.
- Here, select the current flow and select Formatted.
- Now, you can select how to save the exported...