Skip to content

Commit

Permalink
Update reference-models-in-another-project.md
Browse files Browse the repository at this point in the history
add info on project dependencies. 

Closes #4026
  • Loading branch information
mirnawong1 authored Oct 6, 2023
1 parent d8d564b commit ba924fd
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions website/docs/faqs/Models/reference-models-in-another-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,23 @@ title: How can I reference models or macros in another project?
description: "Use packages to add another project to your dbt project"
sidebar_label: 'Reference models or macros in another project'
id: reference-models-in-another-project

keywords:
- project dependency, project dependencies, ref project, dbt mesh, multi-project, mesh, cross-project dependencies
---

You can use [packages](/docs/build/packages) to add another project to your dbt
project, including other projects you've created. Check out the [docs](/docs/build/packages)
You Check out the [docs](/docs/build/packages)
for more information!


I dbt, you can manage dependencies across multiple dbt projects using:

1. **Packages**: You can import [packages](/docs/build/packages) as a way to add another project to your dbt project, including other projects you've created. When you install a project as a package, you bring in its entire source code, making its macros and models available in your own project.

While this is useful for code reuse and sharing utility macros, it may not be the best approach for large-scale collaboration, especially in larger organizations.

4. **Project dependencies**: You can use [project dependencies](/docs/collaborate/govern/project-dependencies) as an exciting way to depend on another project using the metadata service in dbt Cloud. It instantly resolves references to public models defined in other projects. You don't need to execute or analyze these upstream models yourself. Instead, you treat them as an API that returns a dataset. The responsibility for maintaining the quality and stability of these public models lies with their respective maintainers.

This approach offers more flexibility and scalability for collaboration, making it easier to work with external projects while ensuring data quality and consistency.



0 comments on commit ba924fd

Please sign in to comment.