Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion guides/cli/how-to-auto-generate-schema-files.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
title: Autogenerate Lightdash-ready YAML files for your models
sidebarTitle: Autogenerate YAML
icon: "wand-magic-sparkles"
description: The beauty of Lightdash is that we're pretty well synced with your dbt project. So, in Lightdash, Tables actually come from dbt models that have been defined in your dbt project's `.yml` files.
description: Use the lightdash generate command to auto-generate and sync schema.yml files for your dbt models so they appear as tables in Lightdash.
keywords:
- lightdash generate
- generate schema.yml
- auto-generate schema
- lightdash dbt run
- schema.yml
- YAML generation
---

If your dbt model has been defined in a .yml file, it will appear in Lightdash as a Table.
Expand Down
12 changes: 11 additions & 1 deletion references/lightdash-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
title: "Lightdash CLI reference"
sidebarTitle: "Lightdash CLI"
description: "The Lightdash CLI is the recommended way to develop your Lightdash project. It makes development faster and easier, as well as giving you options for building more powerful automation to manage your Lightdash projects."
keywords:
- lightdash generate
- lightdash generate-exposures
- generate schema.yml
- lightdash compile
- lightdash deploy
- lightdash preview
- lightdash validate
- lightdash dbt run
- CLI commands
---

<Info>
Expand Down Expand Up @@ -499,7 +509,7 @@ lightdash validate --only ["dashboards"] --skip-dbt-compile

### `lightdash generate`

Generates a new `schema.yml` file or updates existing `schema.yml` for selected model(s).
Generates a new `schema.yml` file or updates existing `schema.yml` for selected model(s). Use this command to auto-generate Lightdash-ready YAML schema files from your database columns so your dbt models appear as tables in Lightdash.

All standard [dbt options](#dbt-options) work with `lightdash generate`.

Expand Down
Loading