Single binary to production
Go from zero-config local hydro serve to standalone Let's Encrypt HTTPS, typed SDK generation, and 60-second rollback.
You do not have to run nginx or Caddy if you want a single-process deployment. HydroGo can start locally with zero configuration and run directly in production with automatic TLS, live OpenAPI specs, and signed self-updates.
1. Start locally in 5 seconds
# No config.yaml needed — creates ./hydro_data/hydro.db and prints /admin/setup?token=...
hydro serveChoose a starter preset (minimal, blog, commerce, crm) right in the browser setup screen, create your admin account, and start modeling collections in Studio or content-types/*.yaml.
2. Generate typed SDKs from live OpenAPI
Every running server exposes its current OpenAPI 3.1 contract at /api/v1/openapi.json (including your custom content-types/*.yaml schemas). Generate zero-dependency TypeScript or Dart clients directly:
hydro sdk generate --content-types-dir content-types --out ./sdk --lang typescript
# Outputs ./sdk/typescript/client.ts with HydroCollections and collection() helpers3. Standalone HTTPS with --ssl=auto
On a VPS with ports 80 and 443 open to the public internet, pass --ssl=auto --domain so HydroGo provisions and renews Let's Encrypt certificates automatically (storing certs under data/certs or hydro_data/certs):
HYDRO_ENV=production \
HYDRO_JWT_SECRET="$(openssl rand -hex 32)" \
RECOVER_SECRET="$(openssl rand -hex 32)" \
hydro serve --config config.yaml --ssl=auto --domain cms.example.com--ssl=auto sets security.enable_hsts: true and security.secure_cookies: true automatically and refuses to run when http.behind_proxy: true.4. Signed updates & 60s auto-rollback
Enable opt-in patch maintenance windows in Admin System → System Updates or verify updates from the CLI:
hydro upgrade check --config config.yaml
hydro upgrade status --jsonBefore replacing the executable, HydroGo verifies the Ed25519 signature, snapshots SQLite WAL, keeps the previous binary at .prev, and restores .prev automatically if the new binary fails to bind and pass startup checks within 60 seconds.