1. Install and authenticate the CLI
The CLI is how your dbt project reaches Lightdash. Install it, then log in to link it to your instance.2. Choose which models become Tables
Tag the dbt models you want to expose, so staging and intermediate models stay out of Lightdash:3. Generate your YAML
lightdash generate writes a starting YAML file for each model, with an entry for every column, so you’re editing rather than authoring from scratch.
lightdash generate.
4. Define dimensions
Dimensions are the attributes your team groups and filters by. Each one is a column in your model, declared in its YAML. See dimensions for the full set of configuration options, formatting, and additional dimensions.5. Define metrics
Metrics are the aggregations your team measures. Defining them once here is what keeps everyone’s numbers consistent. See metrics for every metric type and configuration option.6. Preview before you deploy
lightdash preview spins up a temporary project from your local changes so you can check your work against real data without touching production.
7. Deploy to production
Once the preview looks right, deploy the changes to your production project.lightdash deploy, and set up CI/CD to run this automatically on merge.