CLI cheatsheet
Curated commands for daily use. Full flags and examples: packages/cli/README.md.
Set DBT_TOOLS_DBT_TARGET=./target or pass --dbt-target ./target on every command. Remote targets: Local and remote artifacts.
Remote targets
bash
dbt-tools status --dbt-target ./target
dbt-tools status --dbt-target s3://my-bucket/dbt/prod
dbt-tools status --dbt-target gs://my-bucket/dbt/prodReadiness and manifest
| Command | Purpose |
|---|---|
status | Artifact presence and readiness |
summary | Manifest statistics |
freshness | Alias for status |
bash
dbt-tools status --dbt-target ./target --json
dbt-tools summary --dbt-target ./target --fields "total_nodes" --jsonDiscovery and inventory
| Command | Purpose |
|---|---|
discover | Ranked search with reasons (preferred) |
search | Resource search (shared parsing; different output shape) |
inventory | List/filter resources |
bash
dbt-tools discover --dbt-target ./target "orders" --json
dbt-tools inventory --dbt-target ./target --type model --jsonGraph and dependencies
| Command | Purpose |
|---|---|
deps | Upstream/downstream dependencies |
graph | Export graph (JSON, DOT, GEXF) |
explain | Intent-shaped resource summary |
bash
dbt-tools deps model.pkg.node --dbt-target ./target --direction downstream --json
dbt-tools explain model.pkg.node --dbt-target ./target --jsonExecution
| Command | Purpose |
|---|---|
query-executions | Filter/sort run executions |
timeline | Per-node execution timeline |
run-summary | Run-level aggregates |
run-report | Execution report + critical path |
bash
dbt-tools query-executions --dbt-target ./target --sort duration --limit 20 --json
dbt-tools run-report --dbt-target ./target --jsonIntrospection
| Command | Purpose |
|---|---|
schema | Runtime command/field schemas |
bash
dbt-tools schema --jsonCommon flags
| Flag | Purpose |
|---|---|
--json | Machine-readable stdout |
--fields "a,b" | Shrink JSON payloads |
--trace | Investigation transcript on intent/discover output |