You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add optional color support to Helm CLI output #31031
I’d like to introduce optional ANSI color support to Helm CLI output via a --color flag. This would help users visually distinguish important elements such as:
Status labels (e.g., deployed, failed)
Section headers (e.g., REVISION, NAMESPACE)
Contextual metadata like release names or ports
The colorization should:
Be opt-in (disabled by default)
Detect if output is interactive (isatty) and disable colors in non-TTY contexts like piping to a file
Be applied conservatively to avoid disrupting scripting/parsing
The implementation will leverage existing dependencies like fatih/color, already vendored in Helm.
A working prototype is being prepared locally and could be contributed as a reference implementation. The changes are confined to output formatting in selected commands such as:
helm status
helm list
helm install
I’d be happy to move this into a formal HIP if maintainers see value in this idea.
Why is this needed?
Colorful CLI output is standard in many popular DevOps tools (e.g., kubectl, docker, git, terraform). Adding color support will:
Improve human readability and focus during CI/CD or release debugging
Enhance developer experience when interpreting Helm output
Enable terminal themes or UI-based Helm wrappers to parse visual cues more easily
Since Helm often outputs logs, ports, and resource status, making these visually distinct helps developers debug and understand the state of their deployments faster.
This would align Helm with modern CLI UX practices while preserving backward compatibility for pipelines and machine parsing.
Activity
robertsirc commentedon Jul 8, 2025
I did review the PR for this. I have the same question that I put out to the other maintainers on if color should be on by default.