selectjoin [--version] [--plain] [--debug] COMMAND ...
--debug shows Python tracebacks. python -m selectjoin is equivalent. Running selectjoin with no command prints the list of commands, grouped by what they are for.
In an interactive terminal, output is styled: tables for list, layers, inspect, and diff, highlighted SQL from compile, and errors that show the file, the message, and the suggestion. When output is piped, redirected, or captured, it is plain text. --json output and SQL written with --output are never styled.
--plain forces plain output in a terminal. Put it before the command: selectjoin --plain list.
All commands except init accept:
Option
Description
--project PATH
Project directory. Default: the nearest selectjoin.toml above the current directory.
--as-of DATE
Anchor date windows to an ISO date or timestamp.
--full-refresh
Compile full history; incremental materialization creates a table.
Command
Description
init [PATH] [--template minimal|layers|shop|incremental] [--bare]
Create a runnable starter project. Default template: minimal.
new NAME --layer LAYER --from UPSTREAM [--grain COL]
Create a model file in a layer’s folder with its prefix. Never overwrites.
list [--layer LAYER] [--json]
List models and sources with layer, grain, and direct upstream.
layers [--json]
List configured layers and model counts.
export dbt --output PATH [--dialect D] [--force]
Write the project as dbt models into a dbt project. Never replaces files without --force.
export lookml --output PATH [--layer LAYER] [--all] [--schema NAME] [--dialect D] [--force]
Write models as LookML views into a Looker project. Default layer: marts.
export airflow --output PATH [--dag-id ID] [--conn-id ID] [--schedule VALUE] [--schema NAME] [--dialect D] [--force]
Write an Airflow DAG with one task per model, plus its SQL files.
agents [--write] [--force]
Print a guide for coding agents , or save it as AGENTS.md in the project.
skills [--write] [--dir DIR] [--force] [--json]
List the bundled agent skills , or save them into .claude/skills/ in the project.
Command
Description
check [--json]
Validate the project and compile every unit. Never touches data. --json prints the result, or a located error, as JSON.
diff --against REF_OR_FILE [--json]
Report breaking changes to model shapes since a git ref or a saved contract. Exits 1 when something broke.
contract [--output FILE] [--force]
Print or save the shape of every unit as JSON, for diff --against FILE.
compile NAME
Compile a model or source to SQL.
compile --all --output DIR
Compile every source and model.
compile --layer LAYER
Compile every model in a layer.
watch NAME [--output FILE] [--interval 0.5] [--once]
Recompile when Python or config files change. Errors keep the last valid output file.
types --output FILE
Generate typed model factories for editor completion.
compile options:
Option
Description
--dialect NAME
Override the output SQL dialect.
--output PATH
Write to a file, or a directory with --all/--layer.
--force
Replace existing output files.
--local
Show only this model’s query, without upstream CTEs.
--readable
Use logical model names for CTEs (default).
--materialize
Emit CREATE VIEW, CREATE TABLE AS, or MERGE instead of SELECT.
Command
Description
inspect NAME [--json]
Columns and types, grain, materialization, direct neighbors.
deps NAME [--upstream] [--downstream] [--direct] [--json]
Upstream and downstream dependencies.
lineage NAME [--column COL] [--depth N] [--direction both|upstream|downstream] [--limit 100]
Model and column lineage as JSON.
serve [--port 8765]
Open the local lineage explorer .
Command
Description
checks [--layer LAYER] [--json]
List checks defined in checks.py.
compile-checks [NAME] [--all] [--layer LAYER] [--dialect D] [--output PATH] [--force]
Compile checks to standalone SELECT statements that return failure rows.