The node-red-admin command-line tool allows you to remotely administer a Node-RED instance.
Since Node-RED 1.1.0, node-red-admin is now built into the node-red command -
you do not need to install it separately.
To use the version included with node-red, use the command node-red admin.
If you install it separately, you would use the command node-red-admin.
If you want to install node-red-admin separately, you can install it as a global
module with:
npm install -g --unsafe-perm 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:
target - Set or view the target URL and port like http://localhost:1880login - Log user in to the target of the Node-RED admin APIlist - List all of the installed nodesinfo - Display more information about the module or nodeenable - Enable the specified module or node setdisable - Disable the specified module or node setsearch - Search for Node-RED modules to installinstall - Install the module from NPM to Node-REDremove - Remove the NPM module from Node-REDhash-pw - Create a password hash that can be used with the adminAuth and httpNodeAuth settingsNode-RED: Low-code programming for event-driven applications.
Copyright OpenJS Foundation and Node-RED contributors. All rights reserved. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.
The OpenJS Foundation | Terms of Use | Privacy Policy | OpenJS Foundation Bylaws | Trademark Policy | Trademark List | Cookie Policy