# telemetry

Show, enable, or disable anonymous CLI telemetry.

Use `telemetry` commands to inspect and change anonymous CLI telemetry. Telemetry is on by default.

## Usage

:::code-group
```bash title="bun"
bunx prisma telemetry status
```

```bash title="pnpm"
pnpm prisma telemetry status
```

```bash title="yarn"
yarn prisma telemetry status
```

```bash title="npm"
npx prisma telemetry status
```
:::

## Commands

| Command             | Description                                             |
| ------------------- | ------------------------------------------------------- |
| `telemetry status`  | Show whether anonymous CLI telemetry is enabled and why |
| `telemetry enable`  | Enable anonymous CLI telemetry                          |
| `telemetry disable` | Disable anonymous CLI telemetry                         |

## Where the preference is stored

`telemetry enable` and `telemetry disable` write `config.json` in the CLI's config directory: `$XDG_CONFIG_HOME/prisma/` if that variable is set, otherwise `~/.config/prisma/` on macOS and Linux and `%APPDATA%\prisma\` on Windows. The same file holds the random installation id that the first enabled telemetry run creates, right after it prints the notice. `telemetry status` prints the path it is using. The ORM commands mounted in the unified CLI share this preference; there is no second store to change.

## Environment variables

`PRISMA_DISABLE_TELEMETRY=1` and `DO_NOT_TRACK=1` turn telemetry off for the current CLI invocation. If you set them in a shell profile or CI configuration, they apply to every `prisma` run in that environment. The full list, and what to rename if you set `PRISMA_NEXT_*` variables for the early `prisma-next` command, is on [Environment variables](/guides/introduction-5-environment-variables).

## Related pages

- [Authentication & Tools](./authentication-tools-index.md)
- [Build](./build-index.md)
- [Changelog](../changelog.md)
- [Concepts](./concepts-index.md)
- [Console commands](./console-commands-index.md)
- [Contract Authoring](./contract-authoring-index.md)
- [Core Concepts](./core-concepts-index.md)
- [Data Modeling](./data-modeling-index.md)
- [Database](./database-index.md)
- [DB commands](./db-commands-index.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
