Kubecolor understands every subcommands and options which are available for kubectl.
What you have to do is just use kubecolor instead of kubectl like:
If you want to make the colorized kubectl default on your shell,
then override kubectl to become an alias instead:
Kubecolor will automatically disable its colorization if it detects that its output (stdout)
is not a terminal or is a terminal that does not support colors.
To override this behavior, you can for example use the --force-colors flag:
The inverse can also be done by telling kubecolor to not use colors via the --plain flag.
Read more about configuration options at our reference docs: