跳到正文
TakoAPI
返回技能列表

node-red-manager

由 1999azzar 提供

DevOps & Cloud
559下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Manage Node-RED instances via Admin API or CLI.

描述

该技能的功能

A CLI and API wrapper for managing Node-RED instances. Covers flow deployment, node module management, backups, runtime context, and diagnostics. Configured via environment variables pointing to a Node-RED Admin API endpoint.

Scripted CLI access lets you integrate Node-RED changes into automated pipelines without manually navigating the web UI each time.

何时使用

  • Deploying updated automation flows to a remote Node-RED instance
  • Installing third-party node modules without opening the Node-RED UI
  • Backing up all flows before a server migration or upgrade
  • Restoring a previous flow state after a failed deployment
  • Reading or writing global context values from a script or CI pipeline

示例工作流

输入

User asks: Deploy the watchdog flow from assets/flows/watchdog.json

智能体
  1. 1

    Run scripts/nr list-flows to check existing flows

  2. 2

    Run scripts/nr deploy --file assets/flows/watchdog.json to push the flow

  3. 3

    Run scripts/nr get-flow-state to confirm the flow is running

  4. 4

    Run scripts/nr get-diagnostics if any errors appear

输出

Flow deployed and confirmed active via runtime state check

前置要求

  • NODE_RED_URL environment variable (Node-RED Admin API endpoint)
  • NODE_RED_USERNAME environment variable
  • NODE_RED_PASSWORD environment variable
  • Docker (for container restart and log commands)
  • Running Node-RED instance with Admin API enabled

安装

clawhub install 1999azzar/node-red-manager

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接