Environment Variable Reference
v1.0.0Browse common environment variables for POSIX, Windows, Node.js, Python, Docker, and CI/CD.
51 variables found
PATHLinux/macOSColon-separated list of directories searched for executable commands.
PATH=/usr/local/bin:/usr/bin:/bin:/sbinHOMELinux/macOSPath to the current user's home directory.
HOME=/home/usernameUSERLinux/macOSName of the currently logged in user.
USER=johnSHELLLinux/macOSPath to the current user's login shell.
SHELL=/bin/bashLANGLinux/macOSDefault locale for the user environment (language + character encoding).
LANG=en_US.UTF-8TERMLinux/macOSTerminal type. Used by ncurses apps to format output correctly.
TERM=xterm-256colorDISPLAYLinux/macOSX Window System display to use. Required for GUI apps in X11.
DISPLAY=:0TMPDIRLinux/macOSDirectory for temporary files. Falls back to /tmp if unset.
TMPDIR=/tmpPWDLinux/macOSCurrent working directory (updated by cd).
PWD=/home/user/projectsOLDPWDLinux/macOSPrevious working directory. Used by 'cd -'.
OLDPWD=/home/userHOSTNAMELinux/macOSName of the current host machine.
HOSTNAME=myserver.example.comEDITORLinux/macOSPreferred text editor. Used by git commit, crontab -e, etc.
EDITOR=vimPAGERLinux/macOSPreferred pager program for scrollable output.
PAGER=lessSSH_AUTH_SOCKLinux/macOSPath to the SSH agent socket for key-based authentication.
SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socketLD_LIBRARY_PATHLinux/macOSColon-separated paths searched for shared libraries before system paths.
LD_LIBRARY_PATH=/usr/local/lib:/opt/custom/libXDG_CONFIG_HOMELinux/macOSUser-specific configuration files base directory.
XDG_CONFIG_HOME=/home/user/.configDefault: $HOME/.config
PathWindowsSemicolon-separated list of directories searched for executable commands.
Path=C:\Windows\System32;C:\Program Files\...;APPDATAWindowsRoaming application data folder for the current user.
APPDATA=C:\Users\John\AppData\RoamingLOCALAPPDATAWindowsNon-roaming application data folder for the current user.
LOCALAPPDATA=C:\Users\John\AppData\LocalTEMPWindowsDirectory for temporary files.
TEMP=C:\Users\John\AppData\Local\TempUSERNAMEWindowsName of the currently logged in user.
USERNAME=JohnUSERPROFILEWindowsPath to the current user's profile folder.
USERPROFILE=C:\Users\JohnCOMPUTERNAMEWindowsNetBIOS name of the current computer.
COMPUTERNAME=DESKTOP-ABC123SystemRootWindowsPath to the Windows system directory.
SystemRoot=C:\WindowsDefault: C:\Windows
PROGRAMFILESWindowsPath to the Program Files directory.
PROGRAMFILES=C:\Program FilesWINDIRWindowsPath to the Windows installation directory (same as SystemRoot).
WINDIR=C:\WindowsPATHEXTWindowsExecutable file extensions searched in PATH.
PATHEXT=.COM;.EXE;.BAT;.CMDDefault: .COM;.EXE;.BAT;.CMD;.VBS;.PS1
NODE_ENVNode.jsApplication environment. Convention: development | test | production.
NODE_ENV=productionPORTNode.jsTCP port for the server to listen on. Read by most Node.js server frameworks.
PORT=3000Default: 3000
NODE_PATHNode.jsColon-separated paths for module resolution (legacy — prefer node_modules).
NODE_PATH=/usr/lib/node_modulesNODE_OPTIONSNode.jsDefault command-line options passed to the Node.js process.
NODE_OPTIONS=--max-old-space-size=4096npm_package_versionNode.jsPackage version from package.json. Automatically set by npm scripts.
npm_package_version=1.0.0npm_config_prefixNode.jsGlobal npm prefix directory for global package installs.
npm_config_prefix=/usr/localPYTHONPATHPythonColon-separated directories added to sys.path for module imports.
PYTHONPATH=/home/user/project/srcPYTHONHOMEPythonLocation of the Python standard library.
PYTHONHOME=/usr/local/lib/python3.12VIRTUAL_ENVPythonSet when a virtual environment is active. Contains the venv path.
VIRTUAL_ENV=/home/user/project/.venvPYTHONDONTWRITEBYTECODEPythonIf set, Python won't write .pyc bytecode files.
PYTHONDONTWRITEBYTECODE=1PYTHONUNBUFFEREDPythonForce stdout/stderr streams to be unbuffered. Useful for Docker logs.
PYTHONUNBUFFERED=1PIP_NO_CACHE_DIRPythonDisable pip's download cache. Useful in Docker images to reduce size.
PIP_NO_CACHE_DIR=1DOCKER_HOSTDockerSocket or TCP address of the Docker daemon.
DOCKER_HOST=unix:///var/run/docker.sockDOCKER_BUILDKITDockerEnable BuildKit for faster, more efficient Docker builds.
DOCKER_BUILDKIT=1Default: 0
DOCKER_TLS_VERIFYDockerEnable TLS verification for Docker daemon connection.
DOCKER_TLS_VERIFY=1COMPOSE_FILEDockerPath to the Docker Compose file.
COMPOSE_FILE=docker-compose.prod.ymlDefault: docker-compose.yml
COMPOSE_PROJECT_NAMEDockerProject name prefix for Docker Compose containers and volumes.
COMPOSE_PROJECT_NAME=myappCICI/CDSet to 'true' or '1' in most CI environments. Enables CI-specific behaviour.
CI=trueDefault: true
GITHUB_ACTIONCI/CDName of the currently running GitHub Actions action.
GITHUB_ACTION=build-and-testGITHUB_ACTORCI/CDUsername of the person or app that triggered the GitHub Actions workflow.
GITHUB_ACTOR=octocatGITHUB_REFCI/CDFull Git ref (branch or tag) that triggered the GitHub Actions workflow.
GITHUB_REF=refs/heads/mainGITHUB_SHACI/CDThe commit SHA that triggered the GitHub Actions workflow.
GITHUB_SHA=a1b2c3d4e5f6...GITLAB_CICI/CDSet to 'true' in all GitLab CI/CD pipelines.
GITLAB_CI=trueJENKINS_URLCI/CDURL of the Jenkins instance running the current build.
JENKINS_URL=https://jenkins.example.com/