Connect with managed repository
Managed repositories are a great way to trial dbt without needing to create a new repository. If you don't already have a Git repository for your dbt project, you can let dbt host and manage a repository for you.
If in the future you choose to host this repository elsewhere, you can export the information from dbt at any time. Refer to Move from a managed repository to a self-hosted repository for more information on how to do that.
dbt Labs recommends against using a managed repository in a production environment. You can't use Git features like pull requests, which are part of our recommended version control best practices.
To set up a project with a managed repository:
- From your Account settings in dbt, select the project you want to set up with a managed repository. If the project already has a repository set up, you need to edit the repository settings and disconnect the existing repository.
- Click Edit for the project.
- Under Repository, click Configure repository.
- Select Managed.
- Enter a name for the repository. For example, "analytics" or "dbt-models."
- Click Create.
Download managed repository
To download a copy of your managed repository from dbt to your local machine:
- Use the Project selector on the main left-side menu to navigate to a project that's using a managed repository.
- Click Dashboard from the main left-side menu.
- From the dashboard, click Settings.
- Locate the Repository field and click the hyperlink for the repo.
- Below the Deploy key you will find the Download repository option. Click the button to download. If you don't see this option, you're either not assigned a permission set with
write
access to Git repositories, or you don't have a managed repo for your project.