← 返回
未分类 Key 中文

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 a...
用于 Unraid 服务器 GraphQL API 的 TypeScript CLI,包含 12 条命令组,涵盖系统、阵列、磁盘、容器、虚拟机、共享、日志和诊断等功能,专为人性化使用而打造。
ingodibella ingodibella 来源
未分类 clawhub v0.4.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 413
下载
💾 0
安装
1
版本
#latest

概述

ucli agent guide

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

Recommended defaults

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

GroupTypical use
------
systeminfo, health, status, resources, uptime
arraystatus, devices, parity, parity-check actions
disksInventory, SMART, temp, usage, mount
containerslist, inspect, logs, stats, lifecycle actions
notificationslist, latest, get, create, archive
vmslist, inspect, lifecycle actions
shareslist, get, usage
logslist, get, system, tail, search
serviceslist, get, status
networkInterfaces, status
schemaAPI introspection
diagnosticsping, latency, env, doctor

Workflow: health check

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

# 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

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 for stable environments.

ucli agent guide

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

Recommended defaults

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

GroupTypical use
------
systeminfo, health, status, resources, uptime
arraystatus, devices, parity, parity-check actions
disksInventory, SMART, temp, usage, mount
containerslist, inspect, logs, stats, lifecycle actions
notificationslist, latest, get, create, archive
vmslist, inspect, lifecycle actions
shareslist, get, usage
logslist, get, system, tail, search
serviceslist, get, status
networkInterfaces, status
schemaAPI introspection
diagnosticsping, latency, env, doctor

Workflow: health check

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

# 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

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 for stable environments.

版本历史

共 1 个版本

  • v0.4.0 当前
    2026-05-03 10:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 196 📥 67,901
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 681 📥 329,043
dev-programming

CodeConductor.ai

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