Skip to main content
sqb dbt clone populates a target with the already-built relations from your production baseline, without running dbt. It resolves the production-shaped relations by compiling your dbt project at the configured [dbt.production_ref] git ref, then clones or copies each one into the target schema.
The origin is the production_ref.git_ref from your configuration; the destination is the active target. Where the warehouse supports zero-copy cloning, relations are cloned (CLONED); otherwise they are copied (COPIED). Views are recreated to point at the cloned relations (RECREATED_VIEWS). sqb dbt clone is a standalone operation that populates the whole target (or a selected subset) from production up front, without running dbt.

Options

On this topic

  • Configuration - the [dbt.production_ref] git ref and schema-name override that clone resolves against.
  • Diff - compare a build against the production baseline.