--- name: healthmd-cli description: Install and operate the standalone Health.md CLI and portable healthmd-mcp server on macOS, Linux, or Windows. Use when a user wants to pair an iPhone, configure Codex/Claude MCP, check direct readiness, query or chart typed health data, export Apple Health data, extract canonical JSON, manage durable jobs, automate safe runs, or troubleshoot machine-readable errors. This skill is for users, not Health.md developers. compatibility: Requires the standalone `healthmd`/`healthmd-mcp` package and a current Health.md iPhone app. Fresh work requires Health.md foreground with Direct CLI Access enabled. Manual IP/Tailscale and validated generated-file destinations work on macOS, Linux, and Windows. --- # Health.md CLI User Guide The standalone CLI connects directly to iPhone. The Health.md macOS app is not required. ```text healthmd on macOS / Linux / Windows ← authenticated encrypted Manual IP or Tailscale connection → open Health.md iPhone app → HealthKit → protected spool → validated canonical JSON or production-generated files ``` The CLI listens on the computer; iPhone connects to the address entered in Direct CLI Access. HealthKit reads always happen on iPhone. The CLI cannot wake iOS reliably or bypass app activity, protected-data, permission, local-network, or quota controls. Direct is the portable default. Do not add `--backend mac-app`: that adapter is reserved but unimplemented. The portable client supports Manual IP, including Tailscale addresses. Nearby is unsupported. No public CLI/mobile pair is qualified yet. The `0.1.0-alpha.1` candidate source floors are iOS 3.0.3 for v1 exports and v3 typed queries, and Android 1.5.4 (`versionCode 25`) for v2 exports, all built from the exact candidate SHA. Android typed queries are not implemented. Use the exact mobile build named by release evidence; matching protocol or marketing versions alone is not proof. ## Bounded commands On macOS/Linux, run the unfamiliar CLI non-interactively: ```bash NO_COLOR=1 TERM=dumb timeout 15 healthmd --version ` GitHub Release exists yet. Publishing this versioned skill makes the preview contract discoverable; it does **not** qualify or publish a portable CLI/mobile release pair. Do not invent an install URL or present the commands below as a supported release installation. If you are an authorized preview tester with an exact candidate commit and matching mobile build from release evidence, build that checkout from source: ```bash git clone https://github.com/CodyBontecou/health-md.git cd health-md git checkout cd apps/cli cargo install --locked --path crates/healthmd-cli healthmd --version healthmd --help ``` Otherwise, stop and use the released signed Mac helpers documented at . Do not install the old helper from the Mac app or use the monorepo's `apps/apple/scripts/healthmd` wrapper for portable operation; those target the Swift compatibility client. Linux preview builds require an unlocked freedesktop Secret Service provider such as GNOME Keyring or KWallet. The CLI never falls back to plaintext credentials. ## Pair once ```bash NO_COLOR=1 TERM=dumb timeout 180 healthmd direct pair