Open-Source Wikis

/

uv

/

Crates

/

uv-console

astral-sh/uv

uv-console

crates/uv-console/ is uv's terminal interaction layer — color management, progress bars, prompts, and detection of "is this a TTY?".

Purpose

uv's CLI output adapts to its environment: full colors and progress bars in an interactive terminal, plain text under CI=true, and JSON for --output-format json. Centralizing the detection and rendering avoids subtle inconsistencies across commands.

Key abstractions

  • Terminal::detect() — distinguishes TTY / pipe / dumb-terminal.
  • Colored output helpers built on anstream.
  • Progress reporters (delegated to indicatif).
  • Prompt helpers for uv auth login and similar interactive flows.

See also

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

uv-console – uv wiki | Factory