Problem
The /discover command only finds profiles.yml at ~/.dbt/profiles.yml. Teams that keep profiles.yml in their project repo (common for CI/CD) or use DBT_PROFILES_DIR cannot have their profiles auto-discovered.
Expected behavior
Support dbt's standard resolution order:
- Explicit path (tool parameter)
DBT_PROFILES_DIR environment variable
- Project-local
profiles.yml (next to dbt_project.yml)
~/.dbt/profiles.yml (default fallback)
Context
Reported by user Garrett McClintock: "Is there a way to point to a different dbt profile path rather than ~/.dbt/profiles.yml? Ours is in our project repo, but discover is only finding the global one."
Problem
The
/discovercommand only findsprofiles.ymlat~/.dbt/profiles.yml. Teams that keepprofiles.ymlin their project repo (common for CI/CD) or useDBT_PROFILES_DIRcannot have their profiles auto-discovered.Expected behavior
Support dbt's standard resolution order:
DBT_PROFILES_DIRenvironment variableprofiles.yml(next todbt_project.yml)~/.dbt/profiles.yml(default fallback)Context
Reported by user Garrett McClintock: "Is there a way to point to a different dbt profile path rather than ~/.dbt/profiles.yml? Ours is in our project repo, but discover is only finding the global one."