返回顶部
u

unraid-cliUnraid命令行工具

TypeScript CLI for Unraid Server GraphQL API. 12 command groups for system, arrays, disks, containers, VMs, shares, logs, and diagnostics. Built for humans and AI agents.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.4.0
安全检测
已通过
105
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

unraid-cli

ucli agent guide

CLI: ucli [global flags] [args...]

推荐默认设置

bash
ucli --output json --quiet

  • - --output json 用于机器可读的输出
  • --quiet 用于抑制装饰性文本
  • --fields 用于缩减数据负载
  • --filter 和 --sort 用于在数据进入上下文之前进行数据整形

安全护栏

  • - 优先使用只读命令。先检查再操作。
  • 仅在明确的自动化路径中使用 --yes,切勿随意使用。
  • 破坏性操作必须配合明确的标识符。shell 中不允许模糊匹配。
  • 任何变更操作后都要重新获取状态。不要信任之前的缓存。
  • 将退出码 0 视为成功。非零退出码:捕获 stderr,仅在临时故障时重试。

命令组

典型用途
systeminfo、health、status、resources、uptime
array
status、devices、parity、奇偶校验操作 | | disks | 清单、SMART、温度、使用情况、挂载 | | containers | list、inspect、logs、stats、生命周期操作 | | notifications | list、latest、get、create、archive | | vms | list、inspect、生命周期操作 | | shares | list、get、使用情况 | | logs | list、get、system、tail、search | | services | list、get、status | | network | 接口、状态 | | schema | API 内省 | | diagnostics | ping、latency、env、doctor |

工作流程:健康检查

bash
ucli system info --output json --quiet
ucli system health --output json --quiet
ucli array status --output json --quiet
ucli services status --output json --quiet

  1. 1. 分别获取每个信息。遇到非零退出码立即失败。
  2. 汇总阵列状态、服务状态、资源压力、警告信息。
  3. 仅在快照显示问题时才拉取日志。

工作流程:容器管理

bash

列出运行中的容器


ucli containers list --output json --quiet --fields id,names,state,status --sort names:asc

检查单个容器

ucli containers inspect --output json --quiet

重启

ucli containers restart --yes --output json --quiet
  1. 1. 通过 id 或 names 解析目标。
  2. 检查当前状态。
  3. 当确认会阻塞自动化时使用 --yes 执行。
  4. 变更后重新读取状态。

反模式

  • - 不要解析人类可读的输出。始终使用 --output json。
  • 不要从人类可读的文本中假设部分成功。检查退出码。
  • 不要在非临时性错误上重试(认证、错误参数、资源缺失)。
  • 不要在大结果集上跳过 --fields。令牌浪费会迅速累积。
  • 不要在变更操作之间跳过重新获取状态而直接链式操作。
  • 除非你完全了解 --force 跳过了什么,否则不要使用它。

配置

默认配置路径:~/.config/ucli/config.yaml

yaml
default_profile: lab
profiles:
lab:
host: http://192.168.1.10:7777
apiKey: YOURAPIKEY
output: json
timeout: 30

对于独立任务,优先明确使用 --host 和 --api-key;对于稳定环境,使用 --profile

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 unraid-cli-1775908448 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 unraid-cli-1775908448 技能

通过命令行安装

skillhub install unraid-cli-1775908448

下载

⬇ 下载 unraid-cli v0.4.0(免费)

文件大小: 5.02 KB | 发布时间: 2026-4-12 11:47

v0.4.0 最新 2026-4-12 11:47
Fix: metadata.openclaw.requires format matching OpenClaw core schema (bins + env + install)

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部