diff --git a/README.md b/README.md index 8ce52a5..a2bf2bd 100644 --- a/README.md +++ b/README.md @@ -383,7 +383,7 @@ container automatically. πŸͺ„ | `devbox conflicts` `[--json] [--rm]` | πŸ’₯ List conflict copies across all mounts; `--json` emits a JSON array, `--rm` deletes them (review first!) | | `devbox ignore ` | πŸ™ˆ Append a pattern to `./.devignore` | | `devbox hook edit ` | πŸͺ Scaffold/open a hook in `$EDITOR`; `hook list ` shows installed | -| `devbox doctor` `[--json]` | 🩺 Diagnose watcher limits, perms, bash, hub connectivity + bearer (non-zero exit on ❌ β€” cron-friendly); `--json` for monitoring | +| `devbox doctor` `[--json]` | 🩺 Diagnose watcher limits, perms, bash, hub connectivity + bearer + **clock skew vs hub** (warns >30s); non-zero exit on ❌ β€” cron-friendly; `--json` for monitoring | | `devbox status` shows sync age | ⏱️ Live status now prints per-mount last-sync age ("synced 12s ago" / "not synced yet") | | `devbox pause [--for ]` / `resume` | ⏸️▢️ Suspend/resume the running daemon's syncing via its control socket; `--for 2h` auto-resumes (M8) | | `devbox invite ` | βœ‰οΈ Mint an invite token granting a role (`--reshare` for `+s`); attenuation-enforced (M8a) | @@ -401,15 +401,18 @@ container automatically. πŸͺ„ |---|---| | `devbox-hub serve --config ` | πŸš€ Start the hub | | `devbox-hub token` | 🎟️ Mint / rotate the join token | -| `devbox-hub device list` / `revoke ` | πŸ“‹βŒ List / revoke devices | +| `devbox-hub device ls` `[--json]` Β· `revoke ` | πŸ“‹βŒ List enrolled devices (id/name/principal/last-seen/revoked) / revoke one | | `devbox-hub readonly ` | πŸ”’ Mark a device read-only on a share | | `devbox-hub member set/rm/list` Β· `principal` | πŸ›‘οΈ Per-share roles + principals (M8a) | +| `devbox-hub backup ` | πŸ’Ύ Disaster-recovery snapshot: consistent DB copy (`VACUUM INTO`) + the blob tree into `` | | `devbox-hub serve --dashboard` | πŸ“Š Serve the live web dashboard (loopback `:8099` by default) | | `devbox-hub serve --dashboard-token ` | πŸ” Require a token to view the dashboard (recommended for any non-loopback bind) | +| `devbox-hub serve --metrics-token ` | πŸ” Require a token for `/metrics` β€” close the unauthenticated leak on a WAN-exposed hub | +| `devbox-hub serve --access-log` | πŸ“ Log one line per request (method, path, status, bytes, addr) for WAN forensics | | `devbox-hub serve --gc-every ` | 🧹 Opt-in in-process periodic GC (off by default; each sweep animates on the dashboard) | -| `devbox-hub gc [--dry-run]` | 🧹 Garbage-collect unreferenced chunks; `--dry-run` previews what would be pruned, deletes nothing | +| `devbox-hub gc [--dry-run] [--keep ] [--keep-days ]` | 🧹 GC unreferenced chunks; `--dry-run` previews, `--keep` keeps N newest/share, `--keep-days` also keeps anything from the last N days | | `GET /healthz` Β· `GET /readyz` | 🩺 Liveness (`/healthz` reports the build version) / readiness (`/readyz` pings the DB β†’ 503 if unreachable) for Docker/LB | -| `GET /metrics` | πŸ“Š Prometheus: gauges (devices/shares/snapshots/chunks) + counters (blob bytes in/out, pushes, conflicts) | +| `GET /metrics` | πŸ“Š Prometheus: gauges (devices/shares/snapshots/chunks) + counters (blob bytes in/out, pushes, conflicts); gate with `--metrics-token` |