Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ilyama.golain.io/llms.txt

Use this file to discover all available pages before exploring further.

golain can provision a complete Omega + SQLite replication setup for a registered device: MQTT certificates, client YAML, environment script, Omega binary, SQLite extensions, and optional systemd/launchd unit files. Artifacts are written under ~/.config/golain/omega/{device-name}/ by default.

Prerequisites

CLI: golain omega scaffold

Creates or reuses MQTT device certificates, generates config, downloads Omega and SQLite deps, and optionally seeds a sample database.
golain omega scaffold \
  --device=sensor-01 \
  --fleet=warehouse \
  --sample-db \
  --transport=tls \
  --out=~/.config/golain/omega/sensor-01

Flags

FlagDefaultDescription
--device(required)Device name or UUID
--fleet(required)Fleet name or UUID
--orgcontext orgOverride org
--projectcontext projectOverride project
--archhost GOOS_GOARCHTarget arch (linux_amd64, darwin_arm64, …)
--db-pathExisting SQLite source DB (skips sample seed)
--sample-dbfalseSeed demo tables into source.db
--verify-tablesfalseSeed unique vrf_* tables (avoids lineage collisions in shared projects)
--out~/.config/golain/omega/{device}Output directory
--channelstableOmega CDN channel (stable, latest, dev)
--transportquicMQTT transport (quic or tls)
Prefer --transport=tls when QUIC is unavailable or fails against your broker. The scaffold auto-falls back to TLS when the project has MQTT but not QUIC enabled.

Output files

FilePurpose
omega-config.yamlOmega client profile (sqlite-replication + heartbeat)
omega-env.shOMEGA_* environment exports (source before running)
source.dbApplication SQLite DB (when --sample-db or --verify-tables)
omegaDownloaded Omega binary for selected arch
sqlite-ext/JSON and timeseries loadable extensions
omega-dbSQLite helper for mutations and trigger setup
sqlite-mutate.shWrapper script for post-trigger inserts

Run after scaffold

source ~/.config/golain/omega/sensor-01/omega-env.sh
~/.config/golain/omega/sensor-01/omega -client ~/.config/golain/omega/sensor-01/omega-config.yaml
Then open Edge Sync in the TUI to claim schema reviews and confirm lineages appear.

Maintainer verification

The ilyama repo includes an end-to-end check against api.ilyama.golain.io:
cd ilyama/tools/platform-tui
./scripts/verify-omega-scaffold.sh
Requires a valid golain login session and at least one org/project/fleet.

TUI: Deploy Omega wizard

Interactive flow from device detail:
golain login
golain context set --org=my-org --project=my-project
golain    # launch TUI → Fleets → Devices → select device
Press O on device detail to start Deploy Omega.

Wizard steps

Deploy Omega — target
  → Source database (sample vrf_* tables or existing path)
  → Select tables to replicate
  → Per-table capture strategy (rows / telemetry / ignore)
  → Config preview (YAML + env.sh)
  → Download Omega + SQLite deps from CDN
  → Service setup (systemd / launchd / OpenRC / init.d) or skip
  → Run guide (start commands + optional replication status)
ScreenKeys
Target (arch, channel, transport)↑/↓ change value, Tab next field, Enter continue
Source DBSpace toggle sample vs existing, Enter continue
Table selectSpace toggle table, Enter configure selected
Table configStrategy and column selection
DownloadProgress bar (Omega binary + sqlite deps)
Service setupInit system, service user, boot enable; s skip to run guide
Run guideCopy/paste start commands; v open replication status
Replication statusPolls lineages for device; r refresh
Certificates are saved under ~/.config/golain/certs/{device-name}/.

CDN assets used

AssetCDN path
Omega binaryhttps://tools.ilyama.golain.io/omega/manifest/{channel}.json
SQLite deps bundleManifest key sqlite_deps_{darwin,linux}_{amd64,arm64}
Standalone install (without scaffold):
curl -fsSL https://tools.ilyama.golain.io/omega/install.sh | sh
curl -fsSL https://tools.ilyama.golain.io/omega/install-sqlite-deps.sh | sh
Install Omega