# Disabling Colors

DNSControl is using colors on both its console and notification outputs, to denote changes, such as during preview or push events.

This is on by default in all interactive prompts supporting colors. See below on how to bypass it.

## Disable colors

There are cases that we might need to disable colored output, such as in certain CI environments or particular notification mechanisms that don't support ANSI color codes.

In order to do so, a global `--no-colors` command option is provided, which when set `--no-colors=true`, will disable colors globally.

Alternatively, a `NO_COLOR` environment variable set to any non-empty string will disable color output.

## (Force) Enable colors

If color support is not correctly detected, providing `--no-colors=false` would force-enable coloring, bypassing modules TTY detection.

## Force colors in CI environments

Some CI environments, while supporting colors, fail autodetection, such as GHA. In that case, colors can be forcibly enabled via `--no-colors=false` or by setting a `CI` env variable to `true` (if not autoset).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dnscontrol.org/commands/colors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
