← 返回
开发者工具 中文

Node Red Manager

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".
通过 Admin API 或 CLI 管理 Node‑RED 实例;自动化流程部署、安装节点、排查问题。适用于用户想“构建自动化”“连接设备”“修复 node‑red”。
1999azzar
开发者工具 clawhub v1.0.0 1 版本 99849.8 Key: 无需
★ 1
Stars
📥 1,310
下载
💾 46
安装
1
版本
#latest

概述

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

  • Stack Location: deployments/node-red
  • Data Volume: deployments/node-red/data
  • Docker Service: mema-node-red
  • URL: https://flow.glassgallery.my.id

Usage

Flow Management

# List all flows
scripts/nr list-flows

# Get specific flow by ID
scripts/nr get-flow <flow-id>

# Deploy flows from file
scripts/nr deploy --file assets/flows/watchdog.json

# Update specific flow
scripts/nr update-flow <flow-id> --file updated-flow.json

# Delete flow
scripts/nr delete-flow <flow-id>

# Get flow runtime state
scripts/nr get-flow-state

# Set 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.json

# Restore flows from backup
scripts/nr restore node-red-backup-20260210_120000.json

Node Management

# List installed nodes
scripts/nr list-nodes

# Install node module
scripts/nr install-node node-red-contrib-http-request

# Get node information
scripts/nr get-node node-red-contrib-http-request

# Enable/disable node
scripts/nr enable-node node-red-contrib-http-request
scripts/nr disable-node node-red-contrib-http-request

# Remove node
scripts/nr remove-node node-red-contrib-http-request

Runtime Information

# Get runtime settings
scripts/nr get-settings

# Get runtime diagnostics
scripts/nr get-diagnostics

Context Management

# Get context value
scripts/nr get-context flow my-key
scripts/nr get-context global shared-data

# Set 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 restart

# View logs
docker logs mema-node-red --tail 100

# Follow logs
docker logs -f mema-node-red

Environment Variables

  • NODE_RED_URL: Node-RED API endpoint (default: http://localhost:1880)
  • NODE_RED_USERNAME: Admin username
  • NODE_RED_PASSWORD: Admin password

Legacy 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.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 04:25 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

File Organizer Skill

1999azzar
{ "translation": "按扩展名或日期分文件夹整理目录文件,支持预演、递归及撤销功能。" }
★ 5 📥 10,233
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,471
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,522