用于管理 Uncloud 集群,完成部署、入口配置、扩缩容与运维排障。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "uncloud" 技能: 1. 下载 https://raw.githubusercontent.com/affaan-m/ECC/main/skills/uncloud/SKILL.md 2. 保存为 ~/.claude/skills/uncloud/SKILL.md 3. 装好后重载技能,告诉我可以用了
请用 uc CLI 帮我把 myapp 部署到 Uncloud 集群,发布 8080 端口到公网,并给出完整命令与说明。
返回部署与端口发布命令,并说明执行顺序与验证方法。
我想为集群中的 api 服务配置 Caddy 域名入口,并为一台非集群内设备添加静态代理路由,请生成 uc CLI 操作步骤。
给出入口与代理路由配置命令,并附带示例域名和检查方式。
请帮我把 worker 服务扩容到 5 个副本,查看最近 200 行日志,并说明如何判断是否扩容成功。
输出扩容与日志查看命令,并说明成功判定指标与排障建议。
Reference for the uc CLI — a decentralised self-hosting platform using Docker containers, WireGuard mesh networking, and Caddy reverse proxy.
Use this skill when working with Uncloud clusters, especially when:
uc machineuc deployx-caddy, x-ports, or --caddyfileUncloud runs Docker services across peer machines connected by a WireGuard mesh. Each machine is an equal cluster member; services communicate on the overlay network and Caddy runs globally to terminate public HTTP/HTTPS traffic. Compose files can use Uncloud extensions for ingress, placement, and generated Caddy configuration, while the uc CLI handles image distribution, scheduling, scaling, logs, and cluster state.
uc machine init user@host --name machine-1
uc service run --name web -p app.example.com:8080/https nginx:latest
uc deploy
10.210.0.0/16 by default; DNS provided inside the meshx-caddy / --caddyfile instead| Command | Purpose |
|---|---|
uc machine init user@host | Bootstrap first machine / new cluster |
uc machine add user@host | Join machine to existing cluster |
uc machine ls | List machines |
uc machine update NAME --public-ip IP | Update public IP for ingress |
uc machine rm NAME | Remove machine |
Key init flags: --name, --network 10.210.0.0/16, --no-caddy, --no-dns, --public-ip auto\|IP\|none
| Command | Purpose |
|---|---|
uc service ls / uc ls | List services |
uc service run IMAGE | Run a single container service |
uc deploy | Deploy from compose.yaml |
uc deploy --no-build | Deploy already-pushed images without rebuilding |
uc deploy --recreate | Force service recreation |
uc scale SERVICE N | Set replica count |
uc service logs SERVICE | View logs |
uc service exec SERVICE | Shell into container |
uc service inspect SERVICE | Detailed info |
uc service rm SERVICE | Remove service (keeps named volumes) |
uc ps | All containers across cluster |
uc image push myapp:latest # Push local image to all machines
uc image push myapp:latest -m machine1,machine2 # Push to specific machines
uc images # List images in cluster
uc volume ls # All volumes
uc volume ls -m machine1 # On specific machine
uc volume create NAME -m MACHINE
uc volume rm NAME
uc caddy config # Show current generated Caddyfile (read-only)
uc caddy deploy # Deploy/upgrade Caddy across cluster
uc dns show # Show reserved *.uncld.dev domain
uc dns reserve # Reserve a new domain
uc ctx ls # List cluster contexts
uc ctx use prod # Switch context
-p [hostname:]container_port[/protocol]
| Example | Meaning |
|---|---|
-p 8080/https | HTTPS with auto service-name.cluster-domain hostname |
-p app.example.com:8080/https | HTTPS with custom hostname |
-p 8080/http | HTTP only, no TLS |
-p [host_ip:]host_port:container_port[/protocol]@host
…
帮助用户在回答前选择简短、标准或详细版本,控制回复深度与 token 用量。
帮助用户管理自建 Uptime Kuma 监控并查询可用性与告警统计数据。