What is lightdash.config.yml?
Thelightdash.config.yml file is an optional configuration file that allows you to define project-wide settings for your Lightdash project. Think of it as a way to customize and enhance your Lightdash experience beyond the basic setup.
Do I need this file?
You don’t needlightdash.config.yml to get started with Lightdash! This file is for users who want to:
- Organize metrics in Spotlight with custom categories and visibility settings
- Create parameters that users can change to modify data across multiple charts and dashboards
Getting started
Before creating alightdash.config.yml file, make sure you have:
- ✅ A working Lightdash project (completed the getting started guide)
- ✅ A local dbt project (not connected to dbt Cloud)
- ✅ The Lightdash CLI installed and configured
1
Create the file
Create a new file called
lightdash.config.yml in the root directory of your dbt project - this is the same folder where your dbt_project.yml file is located.2
Add your first configuration
Start with a simple configuration. Here’s a basic example that sets up Spotlight categories:
3
Deploy your changes
After creating or updating your That’s it! Your configuration is now active in your Lightdash project.
lightdash.config.yml file, deploy the changes to your Lightdash project:Configuration options
Thelightdash.config.yml file supports the following top-level configuration options:
Spotlight configuration
Thespotlight section allows you to configure project-wide spotlight settings. This section is required in the lightdash.config.yml file.
Each category in the
categories object requires the following properties:
Parameters configuration
Theparameters section allows you to define project-wide parameters that can be referenced in various parts of your Lightdash project.
If using
options_from_dimension, the object requires the following properties:
Using parameters in your project
Parameters defined in thelightdash.config.yml file can be referenced in various parts of your Lightdash project using the syntax ${lightdash.parameters.parameter_name} or the shorter alias ${ld.parameters.parameter_name}.
For example, to reference a parameter named region: