Environment variables
Every option that is not marked CLI only in CLI reference has a corresponding environment variable. Variables sit between CLI flags and config files in precedence.
Naming rule
Take the option’s destination name, uppercase it, and prefix with
TN_VENV_:
--system-site-packages → TN_VENV_SYSTEM_SITE_PACKAGES
--with → TN_VENV_SEED_PACKAGES (exception, see table)
Complete table
Variable |
Option |
Type |
|---|---|---|
|
|
list (comma-separated) |
|
|
bool |
|
|
bool |
|
|
bool |
|
|
bool |
|
|
bool |
|
|
|
|
|
|
|
|
bool |
|
|
version string |
|
|
bool |
|
|
bool or version |
|
|
bool or version |
|
|
list (comma-separated) |
|
|
bool |
|
|
list (comma-separated) |
|
|
list (comma-separated) |
|
|
list (comma-separated) |
|
|
string |
|
|
integer |
|
|
integer |
|
|
bool |
Additional variables
These are not option mappings but are honored by the reporter and the configuration loader:
Variable |
Effect |
|---|---|
|
explicit config file path (equivalent of |
|
force colored output even when stdout is not a TTY |
|
disable colored output (no-color.org convention) |
|
force colored output (common convention) |
|
extra root scanned by the |
|
root scanned by the |
Type coercion
bool — case-insensitive
1,true,yes,on,y,tare true;0,false,no,off,n,f, and the empty string are false. Anything else is a configuration error (exit code 2).list — comma-separated; whitespace around items is stripped; empty items are dropped.
integer — parsed with
int(); invalid values are configuration errors.string — used verbatim.