Flows are imported and exported from the editor using their JSON format. So,Node-red makes it easy to share flows with others.
Exporting flows
Step 1: Click on the node that you want to export and press CTRL, the node will be highlighted.
Step 2: Go the top right side menu>export>clipboard.
Step 3: Contents of the export file will be displayed click on export to clipboard.
Moreover, there are three tabs on the screen with the selected nodes tab selected. You can change it to export the entire flow or all flows in the workspace.
Step 4: After that, click on the export to clipboard, open a file editor and paste the contents into the file using CTRL+V.
Step 5: Give the file a name and save it.
Importing flows
Step 1: Open the flow in text editor then, copy the contents using CTRL+C
Step 2: Go to top right side Menu>import>clipboard and paste the file into the window.
In the same vein, You can import the flow into an existing flow or a new flow.
Step 3: Click on the Import button to complete the import.
Using copy and paste method to copy nodes
Firstly, you select the nodes that you want to copy. Use CTRL key to select individual nodes together into a group or CTRL+A to select all nodes in the workspace.
Secondly, use CTRL+C to Copy.
Thirdly, move to the place on the workspace or open the workspace where you want to copy the nodes to and use CTRL+V to paste the nodes/flow into the workspace.
For more information click here