--profile in `dbt init` command being ignored

Hi there,

I am trying to create a dbt project using an existing profile default that is already defined in profiles.yml. Running dbt init --help shows this “–profile PROFILE Which profile to load. Overrides setting in dbt_project.yml.”, so accordingly I ran this command to create a new project “proj1” using my default profile.

dbt init --profile default proj1

Expected behaviour:
proj1 created with dbt_project.yml showing profile: 'default'

Actual behaviour:
proj1 created with dbt_project.yml showing profile: 'proj1' which is the default name for a new profile.

What am I doing wrong?

Thanks in advance for any help.

I see you’ve made an issue: [CT-1418] [Bug] CLI argument `--profile` ignored in `dbt init` · Issue #6154 · dbt-labs/dbt-core · GitHub

This feels like the right place for that to be handled so I’m going to close this. Sorry for the delay in getting back to you!

1 Like