Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

On this pageOverview

Environment Variables (Prisma ORM v7) (/docs/orm/v7/reference/environment-variables-reference)

For the complete Prisma documentation index, see llms.txt. A markdown version of any docs page is available by appending .md to its URL.

Reference for Prisma environment variables

Location: ORM > v7 > Reference > Environment Variables

This document describes different environment variables and their use cases.

DEBUG is used to enable debugging output in Prisma Client.

Example setting Prisma Client level debugging output:

Bash
# enable only `prisma:client`-level debugging output
export DEBUG="prisma:client"

See Debugging for more information.

NO_COLOR if truthy will activate the colorless setting for error formatting and strip colors from error messages.

See Formatting via environment variables for more information.

BROWSER is for Prisma Studio to force which browser it should be open in, if not set it will open in the default browser.

Bash
BROWSER=firefox prisma studio --port 5555

Alternatively you can set this when starting Studio from the CLI as well:

Bash
prisma studio --browser firefox

See Studio documentation for more information.

PRISMA_HIDE_PREVIEW_FLAG_WARNINGS hides the warning message that states that a preview feature flag can be removed. It is a truthy value.

PRISMA_HIDE_UPDATE_MESSAGE is used to hide the update notification message that is shown when a newer Prisma CLI version is available. It's a truthy value.

Disables all CLI warnings generated by logger.warn.

Disables the advisory locking used by Prisma Migrate. Useful for certain database configurations like Percona-XtraDB-Cluster or MariaDB Galera Cluster.

The Prisma CLI supports custom HTTP(S) proxies to download the Prisma engines. These can be helpful to use when working behind a corporate firewall. See Using a HTTP proxy for the CLI for more information.

NO_PROXY is a comma-separated list of hostnames or IP addresses that do not require a proxy.

Bash
NO_PROXY=myhostname.com,10.11.12.0/16,172.30.0.0/16

HTTP_PROXY is set with the hostname or IP address of a proxy server.

Bash
HTTP_PROXY=http://proxy.example.com

HTTPS_PROXY is set with the hostname or IP address of a proxy server.

Bash
HTTPS_PROXY=https://proxy.example.com
  • Config API: Complete reference for prisma.config.ts configuration options
  • Connection URLs: Learn about the format and syntax Prisma ORM uses for defining database connection URLs for PostgreSQL, MySQL and SQLite
  • Database Features: Database features supported in Prisma ORM
  • Error Reference: Prisma Client, Migrate, and Introspection error codes
  • Prisma CLI reference: This page gives an overview of all available Prisma CLI commands, explains their options and shows numerous usage examples
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu