↓ Skip to main content

“Accepting the futility of trying to reverse this trend, an informal standard was proposed in 2017: Command-line software which adds ANSI color to its output by default should check for a NO_COLOR environment variable that, when present and not an empty string (regardless of its value), prevents the addition of ANSI color.”

no-color.org ↗

One environment variable, one rule, and hundreds of tools that respect it. Color in a terminal looks nice until you pipe it into a log file or hand it to a screen reader. Every CLI used to invent its own flag to turn it off. This is how a standard should work: short enough to read in a minute.