Node-Red Setup and Admin Notes

Note: Working Notes

Node red uses a settings file called settings.js located in /usr/lib/node-modules/node-red/ folder by default.

You can create your own settings file and customise it either by copying the existing file or using the file available from Github here.

To use your own settings file use the -s switch when starting node-red e.g.

node-red -s mysettingsfile.js

If you place a settings.js in the .node-red folder that will be used by default.

The documentation here takes your through the settings file in detail.

Other Command line Options

Node red has a very limited number of command line options. use:

node-red -h


The -p switch will let you change the port the node-red admin interface uses.

Your Flows

Flows that you create are stored by default in a file in the .node-red directory of your home folder in a file called flows_severname.json.

EG. for my raspberry pi the file is flows_raspberrypi.json.

You can copy all of the flows by copying this file. This is useful for backing up all of your flows. To use them on another machine change the file name to flows_newmachinebane.json.

See this github page for other important files and folders.

Command Line Admin

You can administer node-red from the command line by installing the node-red-admin tools.

sudo npm  install -g node-red-admin

Even though you may not want to administer node-red this way you will need the tools if you need to create passwords for node-red users.

See Node-red command line and node-red security

Generating Passwords

You can create passwords for use in the settings file by using the admin command line hash-pw command as follows:


If you right click on the password you can copy it using CRT+C.

Requiring Username and Password Authentication

There are three places were you can configure authentication.

  • The Admin console- Node red editor
  • Nodes
  • Static Pages

Adding Nodes

You can add additional nodes to your node-red dashboard using

  • npm
  • Node-Red editor
npm install -g package-name 

Or to install for your user i.e.locally. Go to your home directory and type

npm install package-name

In the node-red editor go to menu>manage palette and click the install tab and then type the package name or type in the search box to search for a package.


The node should appear in the node list

installed node
Related Tutorials and Resources:


Leave a Reply

Your email address will not be published. Required fields are marked *