Migration Guide: Legacy Scripts to moraine¶
This guide maps historical script commands to the moraine command contracts.
Command mapping¶
bin/start-clickhouse->bin/moraine up --no-ingestbin/init-db->bin/moraine db migratebin/status->bin/moraine statusbin/stop-all->bin/moraine down
Legacy lifecycle aliases (start-clickhouse, init-db, status, stop-all) remain as fail-fast migration stubs. Service wrapper scripts are retired; use bin/moraine run ingest|monitor|mcp directly.
Runtime changes¶
- Runtime supervision is now in Rust (
moraine), not shell scripts. - ClickHouse schema application is versioned and tracked via
schema_migrations. - One shared config schema is used for all services (
config/moraine.toml). moraine run ingest|monitor|mcpresolves installed binaries first; source-tree fallback is opt-in viaMORAINE_SOURCE_TREE_MODE=1.
Recommended workflow¶
For DB checks: