From cb6ea8d3c20e91a7acb8193c929cd1c8d770cfbb Mon Sep 17 00:00:00 2001 From: shoemoney Date: Tue, 23 Jun 2026 13:11:50 -0500 Subject: [PATCH] =?UTF-8?q?docs:=20Install=20&=20Run=20section=20=E2=80=94?= =?UTF-8?q?=20curl|sh,=20keep-alive=20service,=20Docker=20NAS,=20FDA=20?= =?UTF-8?q?=E2=9A=A1=F0=9F=93=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b0b11e..f4e282b 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ | | | | |---|---|---| | πŸ€” [Why devbox?](#-why-devbox) | 🧠 [Core Concepts](#-core-concepts) | πŸ—οΈ [Architecture](#%EF%B8%8F-architecture) | -| πŸ”„ [How Sync Works](#-how-sync-works) | πŸ’₯ [Conflicts](#-conflicts-never-lose-a-byte) | πŸš€ [Quick Start](#-quick-start) | +| πŸ”„ [How Sync Works](#-how-sync-works) | πŸ’₯ [Conflicts](#-conflicts-never-lose-a-byte) | ⚑ [Install & Run](#-install--run) | πŸš€ [Quick Start](#-quick-start) | | 🧰 [CLI Reference](#-cli-reference) | πŸ“Š [Live Dashboard](#-live-dashboard--watch-your-fabric-breathe) | πŸͺ [Hooks](#-hooks) | πŸ™ˆ [.devignore & Secrets](#-devignore--secret-guard) | | πŸ•°οΈ [Versioning & Deploy](#%EF%B8%8F-versioning--deploy) | πŸ–₯️ [Cross-Platform](#%EF%B8%8F-cross-platform) | πŸ” [Security & Durability](#-security--durability) | | πŸ—ΊοΈ [Roadmap](#%EF%B8%8F-roadmap) | βš–οΈ [License & Open-Core](#%EF%B8%8F-license--open-core) | πŸ™Œ [Contributing](#-contributing) | @@ -277,6 +277,38 @@ The offline edit is **never lost** β€” it just lands as a clearly-named sibling. --- +## ⚑ Install & Run + +**Client (macOS / Linux)** β€” one line. Detects your platform, lets you pick where the binary lives, and offers a **keep-alive auto-restart service** (launchd `KeepAlive` on mac, systemd `Restart=always` on Linux): + +```bash +curl -fsSL https://git.shoemoney.ai/shoemoney/devbox/raw/branch/main/install.sh | sh +# non-interactive: DEVBOX_BIN_DIR=~/.local/bin DEVBOX_SERVICE=1 sh install.sh +# also install the hub: sh install.sh --hub +``` + +
πŸͺŸ Windows Β· 🍎 macOS Full Disk Access Β· πŸ› οΈ knobs + +- **Windows:** `irm https://git.shoemoney.ai/shoemoney/devbox/raw/branch/main/install.ps1 | iex` β€” copies `devbox.exe`, adds it to PATH, and (optionally) a restart-on-failure **Scheduled Task** at logon. Notes Controlled Folder Access if you have it on. +- **macOS Full Disk Access:** to sync `~/Desktop`, `~/Documents`, `~/Downloads`, or **iCloud**, grant Full Disk Access to the `devbox` binary (System Settings β†’ Privacy & Security β†’ Full Disk Access). `devbox doctor` tests your actual mounts and tells you the exact fix + a deep link β€” a background daemon can't show the per-folder prompt, so without it those mounts silently fail. +- **Knobs:** `--bin-dir DIR` Β· `--hub` Β· `--service` / `--no-service` Β· `--release-url URL` (or the `DEVBOX_*` env equivalents). No prebuilt release? The script falls back to a local `dist/` (run `scripts/build-release.sh`) or `go build`. +- **Service control:** `systemctl --user {status,disable} devbox` (Linux) Β· `launchctl unload ~/Library/LaunchAgents/ai.shoemoney.devbox.plist` (mac). + +
+ +**Hub on a NAS (TrueNAS / Synology / unRAID / any Docker host)** β€” self-healing container, drop-in: + +```bash +docker compose up -d --build # hub on :8088, data persisted, restart: unless-stopped +docker compose exec hub devbox-hub token --data /data # mint a join token +# live dashboard: uncomment the :8099 port + --dashboard command in docker-compose.yml +# stronger self-heal (restart on unhealthy): docker compose --profile selfheal up -d +``` + +The image is a tiny (~32 MB) static, non-root Alpine build β€” `Dockerfile` + `docker-compose.yml` at the repo root. + +--- + ## πŸš€ Quick Start > βœ… *Every command below is implemented and fleet-tested. Build with `scripts/build-release.sh`.*