Skip to content

Environment variables ​

VariableEffect
RELGAP_CONFIGConfig file to read instead of the discovered project file, as --config does.
RELGAP_<KEY>Sets a config key; the configuration page names the variable of each key. An unknown RELGAP_ variable is ignored with a warning.
GH_TOKENGitHub token, tried first. Without a token relgap reads gh's config file, then runs gh auth token, and otherwise sends unauthenticated requests (60 per hour).
GITHUB_TOKENGitHub token, tried when GH_TOKEN is not set.
BITBUCKET_API_TOKENBitbucket Cloud API token or access token, sent as Bearer to api.bitbucket.org only. Without it relgap sends anonymous requests (60 per hour per IP).
GITLAB_TOKENGitLab token, sent in PRIVATE-TOKEN only to the host in GITLAB_HOST (default gitlab.com), unless a gitlab.hosts entry names its own token_env.
GITLAB_ACCESS_TOKENGitLab token, tried when GITLAB_TOKEN is not set.
GITLAB_HOSTThe GitLab host that GITLAB_TOKEN belongs to; default gitlab.com.
CI_JOB_TOKENGitLab CI job token, sent in JOB-TOKEN only to CI_SERVER_HOST, when that host has no other token.
CI_SERVER_HOSTThe GitLab host CI_JOB_TOKEN belongs to; GitLab CI sets it.
ANTHROPIC_API_KEYAPI key for --summarize with the anthropic provider when llm.api_key_env is empty.
AWS_*The AWS SDK reads its usual variables for --summarize with the bedrock provider, such as AWS_REGION and AWS_PROFILE.
GITHUB_REPOSITORYRepository for the github-pr-comment notifier when the config names none.
GITHUB_API_URLGitHub API URL for the github-pr-comment notifier when the config names none.
GITHUB_EVENT_PATHEvent file that digest --pull-request and github-pr-comment read the pull request from in GitHub Actions.
HOMEHome directory: the config and cache directories, the go command's settings file, and mise's data directory for outdated --binaries.
XDG_CONFIG_HOMEBase of the user config file, $XDG_CONFIG_HOME/relgap/config.yaml, and of the go command's settings file, $XDG_CONFIG_HOME/go/env, on Linux.
GOPRIVATEGo module path patterns that never reach OSV, as the go command keeps them from its proxy and checksum database. Read like the go command does: the variable, else the go env file.
GONOPROXYMore Go module path patterns that never reach OSV; defaults to GOPRIVATE.
GONOSUMDBMore Go module path patterns that never reach OSV; defaults to GOPRIVATE.
GOENVThe go command's settings file that GOPRIVATE, GONOPROXY and GONOSUMDB are read from when the variables are empty; off reads none. Default: go/env in the user config directory.
APPDATAThe user config directory on Windows, where the go command's settings file is.
XDG_CACHE_HOMEBase of the cache directory: $XDG_CACHE_HOME/relgap.
XDG_DATA_HOMEBase of mise's data directory for outdated --binaries when MISE_DATA_DIR is not set.
MISE_DATA_DIRmise's data directory, whose installs outdated --binaries looks at.
NO_COLORTurns color off with --color auto when set to anything but an empty string.
CLICOLOR_FORCETurns color on with --color auto, even when output is not a terminal, unless it is 0 or NO_COLOR is set.
FORCE_COLORTurns color on like CLICOLOR_FORCE unless it is 0 or false.
CLICOLORSet to 0, turns color off with --color auto.
TERMSet to dumb, turns color off with --color auto.
COLUMNSWidth in columns that tty output wraps notes and release-note entries at; default: the terminal's width.
PATHWhere outdated --binaries looks for installed tools, and where mise, gh and git are looked up.
PATHEXTFile extensions of programs on Windows, for the same lookup.

Child processes ​

A child process, such as terraform, starts with only these variables from relgap's environment, plus the ones the command sets for it. A * matches any suffix.

PATH, HOME, USER, LOGNAME, SHELL, TMPDIR, TEMP, TMP, TZ, TERM, LANG, LC_*, XDG_*, HTTP_PROXY, HTTPS_PROXY, NO_PROXY, http_proxy, https_proxy, no_proxy, SSL_CERT_FILE, SSL_CERT_DIR, AWS_*, TF_*, TG_*, TERRAGRUNT_*, TOFU_*, OPENTOFU_*, MISE_*, GIT_*, SSH_AUTH_SOCK, SYSTEMROOT, SystemRoot, COMSPEC, PATHEXT, WINDIR, APPDATA, LOCALAPPDATA, USERPROFILE, PROGRAMDATA, ProgramFiles, ProgramFiles(x86)