Adapters

adapters

dbt

Browse and operate dbt Cloud and local dbt projects.

Setup

Connect to dbt Cloud with an API token.

services:
  - id: dbt
    adapter: dbt
    name: dbt
    connection:
      method: cloud
      baseUrl: https://cloud.getdbt.com
      accountId: ${DBT_ACCOUNT_ID}
      apiToken: ${DBT_API_TOKEN}

Connect to a local dbt project when DSUI runs through the native or npx runtime.

connection:
  method: local
  projectPath: /data/dbt
  target: dev

Docker limitation

The official Docker image does not include a dbt runtime. If an adapter requires an executable or runtime, provide it in the image used to run DSUI.

Available

  • Projects and jobs for dbt Cloud
  • Runs, run details, logs, and run artifacts
  • Models, columns, and lineage
  • Sources and tests
  • Semantic models, metrics, and saved queries
  • Local dbt commands through execute and build

The adapter polls recent Cloud runs and the local target/run_results.json artifact every minute. It emits typed dbt.run-failed, dbt.run-warning, and dbt.run-succeeded signals for results completed within the last five minutes. Cloud run IDs and local invocation IDs deduplicate repeated polls. Plugins can react with a job such as onSignals: ["dbt.run-failed"].

Not yet available

  • Full parity with the dbt Cloud UI
  • Coverage outside the current branch scope