Setup
mori init
Interactive setup. Walks you through engine selection, provider, and credentials.
Some of these flows might not be optimal since there’s so many combinations. If the interactive flow isn’t working for you, try using the direct connection string method.In the meantime, you can open an issue for the way you were trying to connect.
More information at Configuration > ProvidersUse a custom Docker image for the Shadow container (e.g., for PostgreSQL with pre-installed extensions):
| Flag | Description |
|---|---|
--from | Connection string for non-interactive mode |
--image | Custom Docker image for the Shadow container. Persisted in mori.yaml and used by mori start. Useful when extensions cannot be auto-installed via apt-get (e.g., distroless images, proprietary extensions). |
For PostgreSQL, Mori automatically attempts to install extensions via
apt-get inside the Shadow container when CREATE EXTENSION fails. The --image flag is an escape hatch for cases where auto-install does not work.Running
mori start
Start the proxy. On first run, creates the Shadow database.
| Flag | Description | Default |
|---|---|---|
--port | Proxy listen port | Auto-assign |
--verbose | Log all queries and routing decisions | false |
--mcp | Enable MCP server | false |
--mcp-port | MCP HTTP server port | 9000 |
--max-rows | Max rows to hydrate from prod per query | 0 (unlimited) |
mori stop
Graceful shutdown. Persists all state (Delta Map, Tombstone Set, Schema Registry).
State Management
mori reset
Wipe all local state — Shadow data, Delta Map, Tombstone Set, Schema Registry. Use this for quick resets between runs.
mori reinit
Wipe all local state and delete the shadow container. Use this when the production schema has changed since the last init.
mori status
Display current state: delta rows, tombstones, schema diffs, sequence offsets.
mori inspect
Detailed state for a specific table: delta count, tombstone count, schema divergence, PK type.
Logging
mori log
Stream the proxy activity log.
mori dash
Launch the TUI dashboard — real-time query stream, delta/tombstone stats, table breakdown, live charts.
Connection Management
mori ls
List all configured connections.
mori rm
Remove a connection and its associated state.
mori config
View or edit configuration.
Configuration Files
Mori stores all state in a.mori/ directory at your project root, created by mori init. See Components for details on each state file.

