Skip to content

Output modes

Control colors and formatting globally with general.output_mode.

  • default: Adaptive styling (Rich defaults)
  • light: Colors optimized for light terminals
  • dark: Colors optimized for dark terminals
  • no-color: Structured output without ANSI colors
  • raw: Minimal formatting for scripts/automation

Precedence (highest to lowest): 1) CLI flag: --output-mode 2) Environment: NW_OUTPUT_MODE 3) Config: general.output_mode

Examples:

nw info device1 --output-mode raw
export NW_OUTPUT_MODE=light && nw run device1 system_info

Config snippet:

general:
  output_mode: dark