返回顶部
u

unraid-cli

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
安全检测
已通过
73
下载量
0
收藏
概述
安装方式
版本历史

unraid-cli

# ucli agent guide CLI: `ucli [global flags] <group> <command> [args...]` ## Recommended defaults ```bash ucli --output json --quiet <group> <command> ``` - `--output json` for machine-readable output - `--quiet` to suppress decorative text - `--fields` to shrink payloads - `--filter` and `--sort` to shape data before it hits your context ## Guardrails - Prefer read-only commands first. Inspect before acting. - Use `--yes` only in deliberate automation paths, never speculatively. - Pair destructive actions with explicit identifiers. No fuzzy matching in the shell. - Re-fetch state after any mutation. Do not trust a prior cache. - Treat exit code `0` as success. Non-zero: capture stderr, retry only on transient failures. ## Command groups | Group | Typical use | |---|---| | `system` | `info`, `health`, `status`, `resources`, `uptime` | | `array` | `status`, `devices`, `parity`, parity-check actions | | `disks` | Inventory, SMART, temp, usage, mount | | `containers` | `list`, `inspect`, `logs`, `stats`, lifecycle actions | | `notifications` | `list`, `latest`, `get`, `create`, `archive` | | `vms` | `list`, `inspect`, lifecycle actions | | `shares` | `list`, `get`, usage | | `logs` | `list`, `get`, `system`, `tail`, `search` | | `services` | `list`, `get`, `status` | | `network` | Interfaces, status | | `schema` | API introspection | | `diagnostics` | `ping`, `latency`, `env`, `doctor` | ## Workflow: health check ```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. Fetch each separately. Fail fast on non-zero exits. 2. Summarize array state, service state, resource pressure, warnings. 3. Only pull logs if the snapshot shows trouble. ## Workflow: container management ```bash # list running ucli containers list --output json --quiet --fields id,names,state,status --sort names:asc # inspect one ucli containers inspect <id> --output json --quiet # restart ucli containers restart <id> --yes --output json --quiet ``` 1. Resolve target by `id` or `names`. 2. Inspect current state. 3. Execute with `--yes` when confirmation would block automation. 4. Re-read status after mutation. ## Anti-patterns - Don't parse human-readable output. Always use `--output json`. - Don't assume partial success from human-readable text. Check exit codes. - Don't retry on non-transient errors (auth, bad arguments, missing resources). - Don't skip `--fields` on large result sets. Token waste adds up fast. - Don't chain mutations without re-fetching state between them. - Don't use `--force` unless you understand exactly what it skips. ## Configuration Default config path: `~/.config/ucli/config.yaml` ```yaml default_profile: lab profiles: lab: host: http://192.168.1.10:7777 apiKey: YOUR_API_KEY output: json timeout: 30 ``` Prefer `--host` and `--api-key` explicitly for isolated jobs, `--profile <name>` for stable environments. # ucli agent guide CLI: `ucli [global flags] <group> <command> [args...]` ## Recommended defaults ```bash ucli --output json --quiet <group> <command> ``` - `--output json` for machine-readable output - `--quiet` to suppress decorative text - `--fields` to shrink payloads - `--filter` and `--sort` to shape data before it hits your context ## Guardrails - Prefer read-only commands first. Inspect before acting. - Use `--yes` only in deliberate automation paths, never speculatively. - Pair destructive actions with explicit identifiers. No fuzzy matching in the shell. - Re-fetch state after any mutation. Do not trust a prior cache. - Treat exit code `0` as success. Non-zero: capture stderr, retry only on transient failures. ## Command groups | Group | Typical use | |---|---| | `system` | `info`, `health`, `status`, `resources`, `uptime` | | `array` | `status`, `devices`, `parity`, parity-check actions | | `disks` | Inventory, SMART, temp, usage, mount | | `containers` | `list`, `inspect`, `logs`, `stats`, lifecycle actions | | `notifications` | `list`, `latest`, `get`, `create`, `archive` | | `vms` | `list`, `inspect`, lifecycle actions | | `shares` | `list`, `get`, usage | | `logs` | `list`, `get`, `system`, `tail`, `search` | | `services` | `list`, `get`, `status` | | `network` | Interfaces, status | | `schema` | API introspection | | `diagnostics` | `ping`, `latency`, `env`, `doctor` | ## Workflow: health check ```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. Fetch each separately. Fail fast on non-zero exits. 2. Summarize array state, service state, resource pressure, warnings. 3. Only pull logs if the snapshot shows trouble. ## Workflow: container management ```bash # list running ucli containers list --output json --quiet --fields id,names,state,status --sort names:asc # inspect one ucli containers inspect <id> --output json --quiet # restart ucli containers restart <id> --yes --output json --quiet ``` 1. Resolve target by `id` or `names`. 2. Inspect current state. 3. Execute with `--yes` when confirmation would block automation. 4. Re-read status after mutation. ## Anti-patterns - Don't parse human-readable output. Always use `--output json`. - Don't assume partial success from human-readable text. Check exit codes. - Don't retry on non-transient errors (auth, bad arguments, missing resources). - Don't skip `--fields` on large result sets. Token waste adds up fast. - Don't chain mutations without re-fetching state between them. - Don't use `--force` unless you understand exactly what it skips. ## Configuration Default config path: `~/.config/ucli/config.yaml` ```yaml default_profile: lab profiles: lab: host: http://192.168.1.10:7777 apiKey: YOUR_API_KEY output: json timeout: 30 ``` Prefer `--host` and `--api-key` explicitly for isolated jobs, `--profile <name>` for stable environments.

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

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

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

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

通过命令行安装

skillhub install unraid-cli-1775908448

下载 Zip 包

⬇ 下载 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
返回顶部