How to use the generate command to create semantic models from dbt catalogs
buster generate
command creates or updates semantic model YAML definitions from your dbt project. This powerful automation tool significantly reduces the manual work required to set up and maintain your semantic layer.
Option | Description |
---|---|
--path PATH | Optional path to a specific dbt model .sql file or directory of models to process. If not provided, uses the model_paths in buster.yml. |
--output-file FILE , -o FILE | Optional path to the semantic model YAML file to update. If not provided, uses semantic_models_file from buster.yml. |
dbt docs generate
to refresh the dbt catalog (if you confirm)int
, numeric
, decimal
)real
, double
, float
)money
, number
).dbtignore
file to exclude the generated YAML files from dbt processing.
buster init
generate
command is integrated with the init
command, which can automatically generate semantic models during the project initialization process.
buster parse
after generation to ensure all models are valid