diff --git a/doc/api/cli.md b/doc/api/cli.md index 70cb69cd54a451..12ffd954f0e780 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1257,6 +1257,19 @@ Print node's version. ## Environment variables +### `FORCE_COLOR=[1, 2, 3]` + +The `FORCE_COLOR` environment variable was first introduced by modules in +the Node.js ecosystem before being introduced into Node.js. It is used to +enable ANSI colorized output. The value may be: + +* `1` or `true` to indicate 16-color support, +* `2` to indicate 256-color support, or +* `3` to indicate 16 million-color support. + +When `FORCE_COLOR` is used and set to a supported value, both the `NO_COLOR`, +and `NODE_DISABLE_COLORS` environment variables are ignored. + ### `NODE_DEBUG=module[,…]`