# astonomer-cosmos --select

**URL:** <https://discourse.getdbt.com/t/astonomer-cosmos-select/7096>\
**Category:** Help\
**Tags:** redshift\
**Created:** [March 3, 2023, 8:15pm UTC](https://discourse.getdbt.com/t/astonomer-cosmos-select/7096 "2023-03-03T20:15:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonardo.nardi](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/leonardo.nardi/32/1887_2.png) [@leonardo.nardi](https://discourse.getdbt.com/u/leonardo.nardi)\
**Post date:** [March 3, 2023, 8:15pm UTC](https://discourse.getdbt.com/t/astonomer-cosmos-select/7096/1 "2023-03-03T20:15:09Z")

</div>

## I’m trying the new astonomer-cosmos to orchestrate dbt with airflow. Anyone knows how to run only a specific model (i.e. dbt run --select my\_model)? I managed only to run the entire project through the DbtTaskGroup:

```auto
with DAG(
    dag_id="dbt_test",
    start_date=datetime(2022, 11, 27),
    doc_md= __doc__ ,
    catchup=False,
    default_args={"owner":"test"},
) as dag:

    # run the entire project
    dbt_run = DbtTaskGroup(
        dbt_project_name="dbt_test",
        conn_id="redshift",
        dbt_args={
            "schema": "test",
            "dbt_executable_path": "/usr/local/airflow/dbt_venv/bin/dbt",
        }
    )

```

---

<div class="post-metadata">

**Author:** ![jlaneve](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jlaneve](https://discourse.getdbt.com/u/jlaneve)\
**Post date:** [April 14, 2023, 12:41am UTC](https://discourse.getdbt.com/t/astonomer-cosmos-select/7096/2 "2023-04-14T00:41:41Z")

</div>

Hi Leonard! With Cosmos, you can use the select/exclude to pick certain models, tags, etc. Check out the docs here:

[https://astronomer.github.io/astronomer-cosmos/dbt/configuration.html#selecting-and-excluding](https://astronomer.github.io/astronomer-cosmos/dbt/configuration.html#selecting-and-excluding)

---

<div class="post-metadata">

**Author:** ![leonardo.nardi](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/leonardo.nardi/32/1887_2.png) [@leonardo.nardi](https://discourse.getdbt.com/u/leonardo.nardi)\
**Post date:** [April 17, 2023, 12:53pm UTC](https://discourse.getdbt.com/t/astonomer-cosmos-select/7096/3 "2023-04-17T12:53:39Z")

</div>

Hi. I opened an issue and the problem was the documentation. They fixed it.  
Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/getdbt/original/1X/a7a7ca1fe379aaf90952b0e13118a817babcd14f.png) [@system](https://discourse.getdbt.com/u/system)\
**Post date:** [April 24, 2023, 12:53pm UTC](https://discourse.getdbt.com/t/astonomer-cosmos-select/7096/4 "2023-04-24T12:53:45Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
