---
title: "Contributing to Loki | Grafana Loki documentation"
description: "Contributing to Loki"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Contributing to Loki

For the full contribution guide, see [CONTRIBUTING.md](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md) in the root of the repository.

## Building

Clone the repository and use `make` to build:

Bash ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```bash
git clone https://github.com/grafana/loki.git
cd loki
```

Expand table

| Command            | Output                          |
|--------------------|---------------------------------|
| `make loki`        | `./cmd/loki/loki`               |
| `make logcli`      | `./cmd/logcli/logcli`           |
| `make loki-canary` | `./cmd/loki-canary/loki-canary` |
| `make all`         | all of the above                |
| `make loki-image`  | Docker image for Loki           |

## Running tests

Bash ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```bash
make test              # unit tests
make test-integration  # integration tests (requires Docker, ~15 min)
make lint              # run linters
```

## Contribute to the Helm Chart

Refer to [production/helm/loki/CONTRIBUTING.md](https://github.com/grafana/loki/blob/main/production/helm/loki/CONTRIBUTING.md) for chart-specific guidelines. The official Loki Helm chart is maintained in the [grafana/helm-charts](https://github.com/grafana/helm-charts) repository.
