Hi, is there a way to specify a target for a task?...
# prefect-dbt
r
Hi, is there a way to specify a target for a task? I see the dbt_cli_profile, but I already have all of that stored in my profiles.yml. I just want to do
--target prod
or
--target dev
for example.
s
Hey! You can do that with
extra_command_args
Copy code
trigger_dbt_cli_command(
        project_dir="/Users/test/my_dbt_project_dir",
        create_summary_artifact: bool = True,
        summary_artifact_key: str = "dbt-build-task-summary",
        extra_command_args=["--target", "dev"]
    )