CLI Reference

Complete command-line interface documentation.

Global Options

interlace [OPTIONS] COMMAND [ARGS]
OptionDescription
--version, -vShow version and exit
--helpShow help message

Commands

run

Execute the pipeline:

interlace run [MODELS...] [OPTIONS]
OptionDescription
MODELSSpecific models to run (positional, optional – runs all if omitted)
--env ENVEnvironment (dev, staging, prod)
--verbose, -vEnable verbose output
--project-dir, -d PATHProject directory (default: current)
--force, -fForce execution (bypass change detection)
--since DATEBackfill start bound (overrides cursor start)
--until DATEBackfill end bound (upper limit for cursor filter)

Examples:

# Run all models
interlace run

# Run specific models
interlace run users orders

# Force full refresh
interlace run --force

# Backfill a date range
interlace run --since "2024-01-01" --until "2024-06-30"

# Backfill a specific model
interlace run customer_staging --since "2024-01-01"

info

Display project information:

interlace info [OPTIONS]
OptionDescription
--env ENVEnvironment
--verbose, -vShow detailed model information
--project-dir, -d PATHProject directory (default: current)

Shows discovered models, connections, and project configuration.

serve

Start the web UI and API server:

interlace serve [OPTIONS]
OptionDescription
--env ENVEnvironment (dev, staging, prod)
--host HOSTServer host (default: 127.0.0.1)
--port PORTServer port (default: 8080)
--no-schedulerDisable background scheduler
--no-uiDisable web UI serving
--runRun all models on startup
--project-dir, -d PATHProject directory (default: current)
--verbose, -vEnable verbose output

See the REST API & Service guide for endpoint documentation.

init

Initialize a new project:

interlace init [DIRECTORY]

Creates a new Interlace project with the standard directory structure.

plan

Preview the execution plan without running models:

interlace plan [MODELS...] [OPTIONS]
OptionDescription
MODELSSpecific models to plan (optional – all if omitted)
--forceAssume all models will be re-executed
--format FORMATOutput format: table (default), json, summary
--schemaInclude schema information
--project, -d PATHProject directory

schema

Schema management and diffing:

interlace schema SUBCOMMAND [OPTIONS]

schema list

List all model schemas in an environment:

interlace schema list [OPTIONS]
OptionDescription
--env ENVEnvironment
--schema SCHEMAFilter by schema name
--project-dir, -d PATHProject directory

schema diff

Compare a model’s schema between two environments:

interlace schema diff MODEL [OPTIONS]
OptionDescription
MODELModel name to compare
--env1 ENVFirst environment
--env2 ENVSecond environment
--schema SCHEMASchema name
--project-dir, -d PATHProject directory

lineage

View column-level lineage:

interlace lineage SUBCOMMAND [OPTIONS]

lineage show

Show lineage for a model:

interlace lineage show MODEL [OPTIONS]
OptionDescription
MODELModel name
--column COLShow lineage for a specific column
--upstreamShow upstream lineage only
--downstreamShow downstream lineage only
--depth NMaximum depth to traverse
--format FMTOutput format: tree, table, json, dot
--project PATHProject directory

lineage refresh

Recompute column lineage:

interlace lineage refresh [MODEL] [OPTIONS]

lineage list

List all columns with lineage summary for a model:

interlace lineage list MODEL [OPTIONS]

migrate

Run database migrations:

interlace migrate [OPTIONS]
OptionDescription
--env ENVEnvironment
--migration FILERun a specific migration
--dry-runShow what would be executed
--listList pending and executed migrations

Migrations are .sql files in the migrations/ directory, executed in filename order. Execution state is tracked in the interlace.migration_runs table.

promote

Promote data between environments:

interlace promote [MODELS...] [OPTIONS]
OptionDescription
MODELSSpecific models to promote (optional)
--from ENVSource environment
--to ENVTarget environment
--sources-onlyOnly promote source models
--allPromote all models
--dry-runShow what would be promoted
--connection CONNTarget connection name

config

Manage configuration:

interlace config [OPTIONS]
OptionDescription
--env ENVEnvironment

ui

Launch or manage the embedded web UI:

interlace ui [OPTIONS]