Skip to content

Feat(sqlmesh_dbt): Add support for --project-dir and --profiles-dir#5524

Merged
erindru merged 1 commit intomainfrom
erin/dbt-profiles-project-dir
Oct 12, 2025
Merged

Feat(sqlmesh_dbt): Add support for --project-dir and --profiles-dir#5524
erindru merged 1 commit intomainfrom
erin/dbt-profiles-project-dir

Conversation

@erindru
Copy link
Collaborator

@erindru erindru commented Oct 10, 2025

Adds the following CLI arguments to sqlmesh_dbt:

  • --project-dir - sets the project root, where dbt_project.yml is expected to be found, as well as all of the other project files
  • --profiles-dir - sets the directory where profiles.yml is expected to be found, if different from --project-dir

Note that due to how Click works, these are currently top-level options because they affect project loading. They currently have to be specified as:

$ sqlmesh_dbt --project-dir /some/dir run

rather than what upstream dbt allows:

$ sqlmesh_dbt run --project-dir /some/dir

There are a bunch of other arguments (such as --target) that also have this problem, i'm planning to refactor this in the next PR to match the behaviour with upstream dbt

@erindru erindru merged commit 2dd01a4 into main Oct 12, 2025
45 of 46 checks passed
@erindru erindru deleted the erin/dbt-profiles-project-dir branch October 12, 2025 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants