11# dbterd
22
3- CLI to generate Diagram-as-a-code file ([ DBML] ( https://dbdiagram.io/d ) , [ Mermaid] ( https://mermaid-js.github.io/mermaid-live-editor/ ) , [ PlantUML] ( https://plantuml.com/ie-diagram ) , [ GraphViz] ( https://graphviz.org/ ) , [ D2] ( https://d2lang.com/ ) ) from dbt artifact files (required: [ ![ dbt] ( https://img.shields.io/badge/manifest.json-upto--v9 -3776AB.svg?style=flat&logo=dbt&logoColor=orange )] ( https://schemas.getdbt.com/ ) [ ![ dbt] ( https://img.shields.io/badge/catalog.json-upto--v1-3776AB.svg?style=flat&logo=dbt&logoColor=orange )] ( https://schemas.getdbt.com/ ) )
3+ CLI to generate Diagram-as-a-code file ([ DBML] ( https://dbdiagram.io/d ) , [ Mermaid] ( https://mermaid-js.github.io/mermaid-live-editor/ ) , [ PlantUML] ( https://plantuml.com/ie-diagram ) , [ GraphViz] ( https://graphviz.org/ ) , [ D2] ( https://d2lang.com/ ) ) from dbt artifact files (required: [ ![ dbt] ( https://img.shields.io/badge/manifest.json-upto--v10 -3776AB.svg?style=flat&logo=dbt&logoColor=orange )] ( https://schemas.getdbt.com/ ) [ ![ dbt] ( https://img.shields.io/badge/catalog.json-upto--v1-3776AB.svg?style=flat&logo=dbt&logoColor=orange )] ( https://schemas.getdbt.com/ ) )
44
55[ ![ PyPI version] ( https://badge.fury.io/py/dbterd.svg )] ( https://pypi.org/project/dbterd/ )
66![ python-cli] ( https://img.shields.io/badge/CLI-Python-FFCE3E?labelColor=14354C&logo=python&logoColor=white )
@@ -12,8 +12,7 @@ CLI to generate Diagram-as-a-code file ([DBML](https://dbdiagram.io/d), [Mermaid
1212pip install dbterd --upgrade
1313```
1414
15- Verify installed version:
16-
15+ Verify instal
1716``` bash
1817dbterd --version
1918```
@@ -22,7 +21,7 @@ dbterd --version
2221
2322<details >
2423 <summary >Click me</summary >
25-
24+
2625 ``` bash
2726 # select all models in dbt_resto
2827 dbterd run -ad samples/dbtresto
@@ -34,19 +33,19 @@ dbterd --version
3433 dbterd run -ad samples/dbtresto -s schema:mart -ns model.dbt_resto.staging
3534 # select only models in schema full name dbt.mart excluding staging
3635 dbterd run -ad samples/dbtresto -s schema:dbt.mart -ns model.dbt_resto.staging
37-
36+
3837 # other samples
3938 dbterd run -ad samples/fivetranlog
4039 dbterd run -ad samples/fivetranlog -rt model -rt source
41-
40+
4241 dbterd run -ad samples/facebookad
4342 dbterd run -ad samples/facebookad -rt model -rt source
44-
43+
4544 dbterd run -ad samples/shopify -s wildcard:* shopify.shopify__*
4645 dbterd run -ad samples/shopify -rt model -rt source
47-
46+
4847 dbterd run -ad samples/dbt-constraints -a " test_relationship:(name:foreign_key|c_from:fk_column_name|c_to:pk_column_name)"
49-
48+
5049 # your own sample without commiting to repo
5150 dbterd run -ad samples/local -rt model -rt source
5251 ```
0 commit comments