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
.mdto its URL.
Reference for Prisma environment variables
Location: ORM > v7 > Reference > Environment Variables
This document describes different environment variables and their use cases.
Prisma Client
Section titled “Prisma Client”DEBUG is used to enable debugging output in Prisma Client.
Example setting Prisma Client level debugging output:
# enable only `prisma:client`-level debugging output
export DEBUG="prisma:client"See Debugging for more information.
NO_COLOR
Section titled “NO_COLOR”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.
Prisma Studio
Section titled “Prisma Studio”BROWSER
Section titled “BROWSER”BROWSER is for Prisma Studio to force which browser it should be open in, if not set it will open in the default browser.
BROWSER=firefox prisma studio --port 5555Alternatively you can set this when starting Studio from the CLI as well:
prisma studio --browser firefoxSee Studio documentation for more information.
Prisma CLI
Section titled “Prisma CLI”PRISMA_HIDE_PREVIEW_FLAG_WARNINGS
Section titled “PRISMA_HIDE_PREVIEW_FLAG_WARNINGS”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
Section titled “PRISMA_HIDE_UPDATE_MESSAGE”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.
PRISMA_DISABLE_WARNINGS
Section titled “PRISMA_DISABLE_WARNINGS”Disables all CLI warnings generated by logger.warn.
PRISMA_SCHEMA_DISABLE_ADVISORY_LOCK
Section titled “PRISMA_SCHEMA_DISABLE_ADVISORY_LOCK”Disables the advisory locking used by Prisma Migrate. Useful for certain database configurations like Percona-XtraDB-Cluster or MariaDB Galera Cluster.
Proxy environment variables
Section titled “Proxy environment variables”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
Section titled “NO_PROXY”NO_PROXY is a comma-separated list of hostnames or IP addresses that do not require a proxy.
NO_PROXY=myhostname.com,10.11.12.0/16,172.30.0.0/16HTTP_PROXY
Section titled “HTTP_PROXY”HTTP_PROXY is set with the hostname or IP address of a proxy server.
HTTP_PROXY=http://proxy.example.comHTTPS_PROXY
Section titled “HTTPS_PROXY”HTTPS_PROXY is set with the hostname or IP address of a proxy server.
HTTPS_PROXY=https://proxy.example.comRelated pages
Section titled “Related pages”Config API: Complete reference for prisma.config.ts configuration optionsConnection URLs: Learn about the format and syntax Prisma ORM uses for defining database connection URLs for PostgreSQL, MySQL and SQLiteDatabase Features: Database features supported in Prisma ORMError Reference: Prisma Client, Migrate, and Introspection error codesPrisma CLI reference: This page gives an overview of all available Prisma CLI commands, explains their options and shows numerous usage examples