altimate-code
altimate-code copied to clipboard
Support custom dbt profiles.yml path (DBT_PROFILES_DIR + project-local)
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_DIRenvironment variable- Project-local
profiles.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."