The node-red-admin command-line tool allows you to remotely administer a Node-RED instance.
Install this globally to make the node-red-admin
command available on
your path:
npm install -g node-red-admin
sudo
is required if running as a non-root user on Linux/OS X. If
running on Windows, you will need to run in a command shell as Administrator,
without the sudo
command.
To remotely administer a Node-RED instance, the tool must first be pointed at the Node-RED instance you want
it to access. By default, it assumes http://localhost:1880
. To change that, use the target
command:
node-red-admin target http://node-red.example.com/admin
If authentication is enabled, you must then login
:
node-red-admin login
These commands create a file called ~/.node-red/.cli-config.json
that stores
the target and access token information.
The tool provides the following commands:
list
- List all of the installed nodesinfo
- Display more information about the module or node setenable
- Enable the specified module or node setdisable
- Disable the specified module or node setsearch
- Search NPM for Node-RED modules relating to the search-term giveninstall
- Install a module from NPMremove
- Remove an NPM modulehash-pw
- Create a password hash that can be used with the adminAuth
and httpNodeAuth
settingsNode-RED: Low-code programming for event-driven applications.
A project of the OpenJS Foundation.