What's the difference between `--profile-target` a...
# ask-elementary-ai
o
What's the difference between
--profile-target
and
--project-profile-target
?
k
A message from kapa.ai
The difference between
--profile-target
and
--project-profile-target
in Elementary CLI is as follows: -
--profile-target
(or
-t
): This flag specifies which target to use from the Elementary profile in your
profiles.yml
. Use this when you have multiple outputs (e.g., dev, prod) defined under the
elementary
profile and want to select which one to use for the CLI operation. - `--project-profile-target`: This flag specifies which target to use from your main dbt project profile. This is relevant if your dbt project (not the Elementary profile) has multiple targets and you want to control which environment (e.g., dev, prod) the CLI should reference for dbt operations. In summary,
--profile-target
is for the Elementary profile, while
--project-profile-target
is for your main dbt project profile. You might use both if you have separate profiles for Elementary and your dbt project and need to control which environment each one points to during a CLI run. You can find these options and their descriptions in the official documentation: [CLI commands and usage](https://docs.elementary-data.com/oss/cli-commands#cli-options)