# Environments

An environment is a database or data warehouse connection, the semantic layer
that belongs to it, the tenant definitions for multi-tenancy, and the
dashboards that point to the semantic layer. A typical setup is having at least
2 environments, one for development and one for production. You can promote the
changes from one environment to another in the CLI, so you can easily integrate
with your existing development flow in GitHub Actions and any CI/CD.

```mermaid environments
flowchart LR
  subgraph dev["Development"]
    direction TB
    devdb[("Database")] --> devsl["Semantic layer and tenants"] --> devdash["Dashboards"]
  end
  subgraph prod["Production"]
    direction TB
    proddb[("Database")] --> prodsl["Semantic layer and tenants"] --> proddash["Dashboards"]
  end
  dev -- promote --> prod
```
