π¦ ClawHub
Node Red Manager
by @1999azzar
Manage Node-RED instances via Admin API or CLI. Automate flow deployment, install nodes, and troubleshoot issues. Use when user wants to "build automation", "connect devices", or "fix node-red".
TERMINAL
clawhub install node-red-managerπ About This Skill
name: node-red-manager description: Manage Node-RED instances via Admin API or CLI. Automate flow deployment, install nodes, and troubleshoot issues. Use when user wants to "build automation", "connect devices", or "fix node-red".
Node-RED Manager
Setup
1. Copy.env.example to .env.
2. Set NODE_RED_URL, NODE_RED_USERNAME, and NODE_RED_PASSWORD in .env.
3. The script automatically handles dependencies on first run.Infrastructure
deployments/node-reddeployments/node-red/datamema-node-redhttps://flow.glassgallery.my.idUsage
Flow Management
# List all flows
scripts/nr list-flowsGet specific flow by ID
scripts/nr get-flow Deploy flows from file
scripts/nr deploy --file assets/flows/watchdog.jsonUpdate specific flow
scripts/nr update-flow --file updated-flow.jsonDelete flow
scripts/nr delete-flow Get flow runtime state
scripts/nr get-flow-stateSet flow runtime state
scripts/nr set-flow-state --file state.json
Backup & Restore
# Backup all flows to file
scripts/nr backup
scripts/nr backup --output my-backup.jsonRestore flows from backup
scripts/nr restore node-red-backup-20260210_120000.json
Node Management
# List installed nodes
scripts/nr list-nodesInstall node module
scripts/nr install-node node-red-contrib-http-requestGet node information
scripts/nr get-node node-red-contrib-http-requestEnable/disable node
scripts/nr enable-node node-red-contrib-http-request
scripts/nr disable-node node-red-contrib-http-requestRemove node
scripts/nr remove-node node-red-contrib-http-request
Runtime Information
# Get runtime settings
scripts/nr get-settingsGet runtime diagnostics
scripts/nr get-diagnostics
Context Management
# Get context value
scripts/nr get-context flow my-key
scripts/nr get-context global shared-dataSet context value
scripts/nr set-context flow my-key '"value"'
scripts/nr set-context global counter '42'
scripts/nr set-context global config '{"key": "value"}'
Docker Operations
# Restart Node-RED
cd deployments/node-red && docker compose restartView logs
docker logs mema-node-red --tail 100Follow logs
docker logs -f mema-node-red
Environment Variables
NODE_RED_URL: Node-RED API endpoint (default: http://localhost:1880)NODE_RED_USERNAME: Admin usernameNODE_RED_PASSWORD: Admin passwordLegacy variable names (NR_URL, NR_USER, NR_PASS) are supported for backward compatibility.
API Reference
See references/admin-api.md for complete Admin API endpoint documentation.
π‘ Examples
Flow Management
# List all flows
scripts/nr list-flowsGet specific flow by ID
scripts/nr get-flow Deploy flows from file
scripts/nr deploy --file assets/flows/watchdog.jsonUpdate specific flow
scripts/nr update-flow --file updated-flow.jsonDelete flow
scripts/nr delete-flow Get flow runtime state
scripts/nr get-flow-stateSet flow runtime state
scripts/nr set-flow-state --file state.json
Backup & Restore
# Backup all flows to file
scripts/nr backup
scripts/nr backup --output my-backup.jsonRestore flows from backup
scripts/nr restore node-red-backup-20260210_120000.json
Node Management
# List installed nodes
scripts/nr list-nodesInstall node module
scripts/nr install-node node-red-contrib-http-requestGet node information
scripts/nr get-node node-red-contrib-http-requestEnable/disable node
scripts/nr enable-node node-red-contrib-http-request
scripts/nr disable-node node-red-contrib-http-requestRemove node
scripts/nr remove-node node-red-contrib-http-request
Runtime Information
# Get runtime settings
scripts/nr get-settingsGet runtime diagnostics
scripts/nr get-diagnostics
Context Management
# Get context value
scripts/nr get-context flow my-key
scripts/nr get-context global shared-dataSet context value
scripts/nr set-context flow my-key '"value"'
scripts/nr set-context global counter '42'
scripts/nr set-context global config '{"key": "value"}'
βοΈ Configuration
1. Copy .env.example to .env.
2. Set NODE_RED_URL, NODE_RED_USERNAME, and NODE_RED_PASSWORD in .env.
3. The script automatically handles dependencies on first run.