Environment Variables
Reference for Prisma environment variables
This document describes different environment variables and their use cases.
Prisma Client
DEBUG
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
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
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
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
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
Disables all CLI warnings generated by logger.warn.
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
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
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
HTTP_PROXY is set with the hostname or IP address of a proxy server.
HTTP_PROXY=http://proxy.example.comHTTPS_PROXY
HTTPS_PROXY is set with the hostname or IP address of a proxy server.
HTTPS_PROXY=https://proxy.example.com