Skip to main content
Version: Next

dbt

Synopsis​

starlake dbt import [options]

Description​

Convert a dbt project into the current Starlake project, from target/manifest.json (run dbt deps && dbt parse first). Every macro is expanded; incremental models keep their two versions as {% if sl_incremental %}. Writes dbt-import-report.md at the project root. Exit codes: 0 imported, 1 usage error, unreadable manifest, or existing files without --force.

starlake dbt import --manifest ../shop/target/manifest.json --profiles ~/.dbt/profiles.yml --target dev

Parameters​

ParameterCardinalityDescription
<action>Required, Positionalimport
--connection <value>Optionalexisting Starlake connection the imported objects run on
--forceOptionaloverwrite the files the import writes; nothing is deleted
--introspectOptionalanswer the macros that read the warehouse (run_query, statement, adapter.get_columns_in_relation...) on the import's connection; read-only statements only
--introspect-max-rows <value>Optionalonly with --introspect: the most rows a query may return before its model is skipped (default 10000)
--manifest <value>Requireddbt's target/manifest.json
--profiles <value>Optionaldbt profiles.yml: the target renders target.*, and a DuckDB target becomes a connection
--target <value>Optionaldbt target: target.name, and the output of --profiles (default: the profile's target, else dev)
--vars <value>Optionaldbt --vars, a YAML or JSON map, over the vars of dbt_project.yml