Search⌘ K
AI Features

Targets

Explore how to set up and manage different targets in dbt projects to separate development and production environments. Understand configuration in profiles.yml, using targets with the CLI, and applying conditional logic with Jinja. This lesson helps you safely run tests and manage permissions across environments to enhance your data workflows.

Why use targets?

In a real-world project, we might not want to do all of our tests directly in the production data warehouse. We might want to create different projects for development and production.

To avoid copying everything in another dbt project, we can use different targets.

How to create different targets

In our profiles.yml ...