# yml syntax to tag all table from a source

**URL:** <https://discourse.getdbt.com/t/yml-syntax-to-tag-all-table-from-a-source/12584>\
**Category:** Help\
**Tags:** dbt-core\
**Created:** [March 22, 2024, 2:57pm UTC](https://discourse.getdbt.com/t/yml-syntax-to-tag-all-table-from-a-source/12584 "2024-03-22T14:57:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isarien](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/isarien/32/5579_2.png) [@Isarien](https://discourse.getdbt.com/u/Isarien)\
**Post date:** [March 22, 2024, 2:57pm UTC](https://discourse.getdbt.com/t/yml-syntax-to-tag-all-table-from-a-source/12584/1 "2024-03-22T14:57:04Z")

</div>

Hello,  
I need some help. I want to tag all tables from a source, i use these syntax in my \_stg\_sources.yml:

```auto
  - name: my_source
	project: "my-project"
    config:
      tags: ['top_level', 'documented']
    description: "awesome source of data"
	dataset: source_dataset
	tables:
	 ...
```

But it does not work. The functionnality seems yo exist : [Tags for sources and columns (#1906, #1586) by beckjake · Pull Request #2039 · dbt-labs/dbt-core (github.com)](https://github.com/dbt-labs/dbt-core/pull/2039)  
I think I missing something but what ?

---

<div class="post-metadata">

**Author:** ![deydson\_br](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/deydson_br/32/4814_2.png) [@deydson\_br](https://discourse.getdbt.com/u/deydson_br)\
**Post date:** [March 25, 2024, 9:46pm UTC](https://discourse.getdbt.com/t/yml-syntax-to-tag-all-table-from-a-source/12584/2 "2024-03-25T21:46:22Z")

</div>

```auto
  - name: my_source
    tags: ['top_level','documented']

```

run tag:

```auto
dbt run -s tag:top_level, documented

```

---

<div class="post-metadata">

**Author:** ![Isarien](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/isarien/32/5579_2.png) [@Isarien](https://discourse.getdbt.com/u/Isarien)\
**Post date:** [March 26, 2024, 12:38pm UTC](https://discourse.getdbt.com/t/yml-syntax-to-tag-all-table-from-a-source/12584/3 "2024-03-26T12:38:19Z")

</div>

Thanks . It works fine.

---

<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 2, 2024, 12:39pm UTC](https://discourse.getdbt.com/t/yml-syntax-to-tag-all-table-from-a-source/12584/4 "2024-04-02T12:39:16Z")

</div>

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