# set the project directory for dbt deps in dbt cloud

**URL:** <https://discourse.getdbt.com/t/set-the-project-directory-for-dbt-deps-in-dbt-cloud/5451>\
**Category:** Help\
**Tags:** dbt-cloud, git\
**Created:** [November 30, 2022, 11:23pm UTC](https://discourse.getdbt.com/t/set-the-project-directory-for-dbt-deps-in-dbt-cloud/5451 "2022-11-30T23:23:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dandoyle](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/dandoyle/32/1169_2.png) [@dandoyle](https://discourse.getdbt.com/u/dandoyle)\
**Post date:** [November 30, 2022, 11:23pm UTC](https://discourse.getdbt.com/t/set-the-project-directory-for-dbt-deps-in-dbt-cloud/5451/1 "2022-11-30T23:23:09Z")

</div>

hello everyone,

in the job settings, a command can be added to override default dbt run command in order to use the flag --project-dir to indicate the location of dbt\_project.yml. however, job settings does not recognize dbt deps as a command so it cannot be overriden to use --project-dir to use the same dbt\_project.yml as dbt run. packages.yml is still located in root but dbt deps fails if it does not find dbt\_project.yml.

is it possible to override dbt deps in dbt-cloud?

---

<div class="post-metadata">

**Author:** ![joellabes](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/joellabes/32/3980_2.png) [@joellabes](https://discourse.getdbt.com/u/joellabes)\
**Post date:** [December 1, 2022, 2:07am UTC](https://discourse.getdbt.com/t/set-the-project-directory-for-dbt-deps-in-dbt-cloud/5451/2 "2022-12-01T02:07:28Z")

</div>

Instead of using `--project-dir`, have you tried setting the Project Subdirectory in `Account Settings > Project Details?`

Your packages.yml and dbt\_project.yml file will still need to be at the same depth, but you can specify a subdirectory of the git repo if you have other things beyond just your dbt project inside of a single git repository.

---

<div class="post-metadata">

**Author:** ![dandoyle](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/dandoyle/32/1169_2.png) [@dandoyle](https://discourse.getdbt.com/u/dandoyle)\
**Post date:** [December 1, 2022, 8:00pm UTC](https://discourse.getdbt.com/t/set-the-project-directory-for-dbt-deps-in-dbt-cloud/5451/3 "2022-12-01T20:00:02Z")

</div>

That is exactly what I was looking for. Thank you so much and the tip for packages.yml.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/getdbt/original/1X/a7a7ca1fe379aaf90952b0e13118a817babcd14f.png) [@system](https://discourse.getdbt.com/u/system)\
**Post date:** [December 8, 2022, 8:00pm UTC](https://discourse.getdbt.com/t/set-the-project-directory-for-dbt-deps-in-dbt-cloud/5451/4 "2022-12-08T20:00:38Z")

</div>

Closed on December 8, 2022, 8:00pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
