Skip to content

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/prod

Readiness and manifest

CommandPurpose
statusArtifact presence and readiness
summaryManifest graph statistics (not run outcomes)
freshnessAlias for status
bash
dbt-tools status --dbt-target ./target --json
dbt-tools summary --dbt-target ./target --json

Discovery and inventory

CommandPurpose
discoverRanked search with reasons (preferred)
searchResource search (shared parsing; different output shape)
inventoryList/filter resources
bash
dbt-tools discover --dbt-target ./target "orders" --json
dbt-tools inventory --dbt-target ./target --type model --json

Graph and dependencies

CommandPurpose
depsUpstream/downstream dependencies
impactIntent: counts and notable dependents (lineage web_url)
graphExport graph (JSON, DOT, GEXF)
exportIntent wrapper over graph (--output for a file)
explainIntent-shaped resource summary
bash
dbt-tools deps model.pkg.node --dbt-target ./target --direction downstream --json
dbt-tools impact model.pkg.node --dbt-target ./target --json
dbt-tools explain model.pkg.node --dbt-target ./target --json
dbt-tools export --dbt-target ./target --format json --output graph.json

Execution

CommandPurpose
query-executionsFilter/sort run executions
failuresBounded non-successful run_results rows
timelinePer-node execution timeline
run-summaryRun-level aggregates (status, bottlenecks)
run-reportExecution report + critical path
diagnoseExperimental facade (diagnose run/node)
bash
dbt-tools query-executions --dbt-target ./target --sort execution_time_desc --limit 20 --json
dbt-tools failures --dbt-target ./target --json
dbt-tools run-summary --dbt-target ./target --json
dbt-tools run-report --dbt-target ./target --json

Root query-executions sorts: execution_time_desc, execution_time_asc, unique_id. --sort duration is a timeline key.

Warehouse subcommands add adapter filters (BigQuery example):

bash
dbt-tools query-executions bigquery --dbt-target ./target --min-slot-ms 1000 --sort slot_ms_desc --limit 20 --json

Also: snowflake, athena, postgres, redshift, spark. Full flags: CLI README.

Introspection

CommandPurpose
schemaRuntime command/field schemas
bash
dbt-tools schema --json

Common flags

FlagPurpose
--jsonMachine-readable stdout
--fields "a,b"Shrink JSON payloads (not registered on summary)
--traceInvestigation transcript on intent/discover output

Workflows

Released under the repository license terms.