> For the complete documentation index, see [llms.txt](https://docs.selectstar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.selectstar.com/integrations/dbt.md).

# dbt

Follow these steps to connect your dbt project to Select Star.

## Before you start

To connect dbt to Select Star, you will need...

* Permission to build the dbt project

{% hint style="info" %}
Select Star won't need any permissions for dbt directly, but you will need to build the dbt project and generate build artifacts.
{% endhint %}

Complete the following steps to connect dbt to Select Star.

1. [Determine what kind of dbt connection you need](#1.-determine-what-kind-of-dbt-connection-you-need)
2. [Connect dbt to Select Star](#2.-connect-dbt-to-select-star)

{% hint style="warning" %}
Note that in order to see changes to your dbt project reflected in Select Star after the initial connection, **you must** complete either [step 3](#3.-updating-build-artifacts-automatically) or [step 4](#4.-updating-build-artifacts-manually).
{% endhint %}

## 1. Determine what kind of dbt connection you need

Select Star can integrate with dbt via dbt cloud or via build artifacts (manifest.json, catalog.json, etc).

for DBT Cloud we require...

* a service token for the metadata api
* a job id for a custom job that will generate all the metadata we need
  * see [DBT Cloud - Setup a dbt Cloud Custom Job](/integrations/dbt/dbt-cloud.md#dbt-cloud-custom-job) for details about how to set up the job
* a `Read Only` and `Metadata Only` permission set

## 2. Connect dbt to Select Star

{% hint style="info" %}
If you are using multiple dbt projects and have cross-project dependencies see [dbt Project Dependencies](/integrations/dbt/dbt-project-dependencies.md).
{% endhint %}

Go to the Select Star **Settings**. Click **Data** in the sidebar, then **+ Add** to create a new Data Source.

![](https://3470314135-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgAiVthA_yg9UXKuhyY%2Fuploads%2Fgit-blob-1b5ef3716637dedbfa0eb69326a83270b0773b0b%2FAdd_Data_Source_Settings.gif?alt=media)

Choose **dbt** in the Source Type dropdown and then follow the instructions for how you want to connect:

{% content-ref url="/pages/MQoeDOVEP4yrkHgXgTM1" %}
[dbt Cloud](/integrations/dbt/dbt-cloud.md)
{% endcontent-ref %}

{% content-ref url="/pages/6HDe0KrWKWcvNOENCtHe" %}
[dbt Core (open source)](/integrations/dbt/dbt-core-open-source.md)
{% endcontent-ref %}

### Features

{% content-ref url="/pages/8HMlFQ7sJYR9PpNbffDd" %}
[dbt Tags](/integrations/dbt/dbt-tags-new.md)
{% endcontent-ref %}

{% content-ref url="/pages/zRjQfkCGTVO7Hb0RYkv1" %}
[dbt Tests](/integrations/dbt/dbt-tests-beta.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.selectstar.com/integrations/dbt.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
