# Lightdash

[Lightdash](https://www.lightdash.com/) transforms your dbt™ project into a full-stack BI platform, enabling self-serve analytics for your entire organization. Paradime's native integration with Lightdash CLI allows you to develop and deploy Lightdash metrics directly from your development environment.

{% hint style="warning" %}

#### Prerequisites

Before getting started, you'll need:

* A Lightdash instance ([Cloud](https://app.lightdash.cloud/) or [Self-hosted](https://docs.lightdash.com/self-host/self-host-lightdash))
* Access to Paradime's Code IDE
* Admin access for setting up credentials

Not sure which Lightdash option to choose? See the [Cloud vs. Self-hosted comparison](https://docs.lightdash.com/self-host/lightdash-cloud-vs-self-hosted).
{% endhint %}

### Development Setup

#### Authenticating with LightDash

1. In the [Code IDE](/app-help/documentation/code-ide.md), open the Paradime [Integrated Terminal](/app-help/documentation/code-ide/terminal.md)
2. Follow [Lightdash documentation](https://docs.lightdash.com/guides/cli/cli-authentication/) and run authentication commands.&#x20;
3. Follow the prompts to complete authentication

{% @arcade/embed flowId="6B4zyKyunt3fPrTdQa3d" url="<https://app.arcade.software/share/6B4zyKyunt3fPrTdQa3d>" %}

#### Using Lightdash CL

The Lightdash CLI in Paradime enables you to:

* [Autogenerate Lightdash-ready](https://docs.lightdash.com/guides/cli/how-to-auto-generate-schema-files) YAML files
* [Preview metrics](https://docs.lightdash.com/guides/cli/how-to-use-lightdash-preview) before deployment
* [Deploy changes](https://docs.lightdash.com/guides/cli/how-to-use-lightdash-deploy) to your Lightdash instance

View available commands:

```bash
lightdash --help
```

## Deployment Setup

Enable automatic deployment of your dbt™ project changes to Lightdash using Paradime [Bolt schedules](/app-help/documentation/bolt.md).

#### 1. Configure Lightdash Credentials

1. From any page in Paradime, Click **Settings**
2. Navigate to **Workspaces > Environment Variables**
3. In the [**Bolt Schedules**](/app-help/documentation/settings/environment-variables/bolt-schedule-env-variables.md) section, click **Add New**
4. Configure each required variable:
   * `LIGHTDASH_API_KEY`: Personal access token
   * `LIGHTDASH_PROJECT`: Project UUID
   * `LIGHTDASH_URL`: Instance URL

<details>

<summary>Finding your Lightdash credentials</summary>

* **`LIGHTDASH_API_KEY`**[**​**](https://docs.lightdash.com/guides/cli/how-to-use-lightdash-deploy#lightdash_api_key)

Create a new personal access token, by going to `Settings` > `Personal Access Tokens`. This is the token you'll put in for `LIGHTDASH_API_KEY`.

<img src="/files/Zx2fgvlhwxPUxm3zcVTT" alt="" data-size="original">

* **`LIGHTDASH_PROJECT`**[**​**](https://docs.lightdash.com/guides/cli/how-to-use-lightdash-deploy#lightdash_project)

The UUID for your project. For example, if your URL looks like `https://eu1.lightdash.cloud/projects/3538ab33-dc90-aabb-bc00-e50bba3a5f69/tables`, then `3538ab33-dc90-45f0-aabb-e50bba3a5f69` is your `LIGHTDASH_PROJECT`

* **`LIGHTDASH_URL`**[**​**](https://docs.lightdash.com/guides/cli/how-to-use-lightdash-deploy#lightdash_url)

This is either `https://eu1.lightdash.cloud` or `https://app.lightdash.cloud` (check the URL to your Lightdash project)

</details>

#### 2. Configure Deployment Schedule

1. Create or edit a [Bolt schedule](/app-help/documentation/bolt.md)
2. Add the `lightdash deploy` command
3. This will:
   * Execute after your dbt™ commands complete
   * Deploy changes to your Lightdash project
   * Keep metrics in sync with your dbt™ project

{% hint style="info" %}
You can configure this as part of a [CD schedule](/app-help/documentation/bolt/ci-cd/continuous-deployment-with-bolt/continuous-deployment.md) to deploy changes automatically after PR merges.
{% endhint %}

{% embed url="<https://docs.lightdash.com/guides/cli/how-to-use-lightdash-deploy#automatically-deploy-your-changes-to-lightdash-using-a-github-action>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.paradime.io/app-help/documentation/integrations/dashboards/lightdash.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
