Respect `FORCE_COLOR` environment variable (#10315)

## Summary

Closes https://github.com/astral-sh/uv/issues/10303.
This commit is contained in:
Charlie Marsh 2025-01-05 21:18:16 -05:00 committed by GitHub
parent 88b63b16d5
commit f7fc85f4e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 133 additions and 93 deletions

View File

@ -171,12 +171,13 @@ pub struct GlobalArgs {
#[arg(global = true, long, hide = true, conflicts_with = "color")] #[arg(global = true, long, hide = true, conflicts_with = "color")]
pub no_color: bool, pub no_color: bool,
/// Control colors in output. /// Control the use of color in output.
///
/// By default, uv will automatically detect support for colors when writing to a terminal.
#[arg( #[arg(
global = true, global = true,
long, long,
value_enum, value_enum,
default_value = "auto",
conflicts_with = "no_color", conflicts_with = "no_color",
value_name = "COLOR_CHOICE" value_name = "COLOR_CHOICE"
)] )]
@ -4486,8 +4487,8 @@ pub struct GenerateShellCompletionArgs {
pub quiet: bool, pub quiet: bool,
#[arg(long, short, action = clap::ArgAction::Count, conflicts_with = "quiet", hide = true)] #[arg(long, short, action = clap::ArgAction::Count, conflicts_with = "quiet", hide = true)]
pub verbose: u8, pub verbose: u8,
#[arg(long, default_value = "auto", conflicts_with = "no_color", hide = true)] #[arg(long, conflicts_with = "no_color", hide = true)]
pub color: ColorChoice, pub color: Option<ColorChoice>,
#[arg(long, hide = true)] #[arg(long, hide = true)]
pub native_tls: bool, pub native_tls: bool,
#[arg(long, hide = true)] #[arg(long, hide = true)]

View File

@ -52,7 +52,7 @@ fn help() {
-v, --verbose... -v, --verbose...
Use verbose output Use verbose output
--color <COLOR_CHOICE> --color <COLOR_CHOICE>
Control colors in output [default: auto] [possible values: auto, always, never] Control the use of color in output [possible values: auto, always, never]
--native-tls --native-tls
Whether to load TLS certificates from the platform's native certificate store [env: Whether to load TLS certificates from the platform's native certificate store [env:
UV_NATIVE_TLS=] UV_NATIVE_TLS=]
@ -132,7 +132,7 @@ fn help_flag() {
-v, --verbose... -v, --verbose...
Use verbose output Use verbose output
--color <COLOR_CHOICE> --color <COLOR_CHOICE>
Control colors in output [default: auto] [possible values: auto, always, never] Control the use of color in output [possible values: auto, always, never]
--native-tls --native-tls
Whether to load TLS certificates from the platform's native certificate store [env: Whether to load TLS certificates from the platform's native certificate store [env:
UV_NATIVE_TLS=] UV_NATIVE_TLS=]
@ -211,7 +211,7 @@ fn help_short_flag() {
-v, --verbose... -v, --verbose...
Use verbose output Use verbose output
--color <COLOR_CHOICE> --color <COLOR_CHOICE>
Control colors in output [default: auto] [possible values: auto, always, never] Control the use of color in output [possible values: auto, always, never]
--native-tls --native-tls
Whether to load TLS certificates from the platform's native certificate store [env: Whether to load TLS certificates from the platform's native certificate store [env:
UV_NATIVE_TLS=] UV_NATIVE_TLS=]
@ -347,9 +347,9 @@ fn help_subcommand() {
(<https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives>) (<https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives>)
--color <COLOR_CHOICE> --color <COLOR_CHOICE>
Control colors in output Control the use of color in output.
[default: auto] By default, uv will automatically detect support for colors when writing to a terminal.
Possible values: Possible values:
- auto: Enables colored output only when the output is going to a terminal or TTY with - auto: Enables colored output only when the output is going to a terminal or TTY with
@ -591,9 +591,9 @@ fn help_subsubcommand() {
(<https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives>) (<https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives>)
--color <COLOR_CHOICE> --color <COLOR_CHOICE>
Control colors in output Control the use of color in output.
[default: auto] By default, uv will automatically detect support for colors when writing to a terminal.
Possible values: Possible values:
- auto: Enables colored output only when the output is going to a terminal or TTY with - auto: Enables colored output only when the output is going to a terminal or TTY with
@ -728,7 +728,7 @@ fn help_flag_subcommand() {
-v, --verbose... -v, --verbose...
Use verbose output Use verbose output
--color <COLOR_CHOICE> --color <COLOR_CHOICE>
Control colors in output [default: auto] [possible values: auto, always, never] Control the use of color in output [possible values: auto, always, never]
--native-tls --native-tls
Whether to load TLS certificates from the platform's native certificate store [env: Whether to load TLS certificates from the platform's native certificate store [env:
UV_NATIVE_TLS=] UV_NATIVE_TLS=]
@ -801,7 +801,7 @@ fn help_flag_subsubcommand() {
-v, --verbose... -v, --verbose...
Use verbose output Use verbose output
--color <COLOR_CHOICE> --color <COLOR_CHOICE>
Control colors in output [default: auto] [possible values: auto, always, never] Control the use of color in output [possible values: auto, always, never]
--native-tls --native-tls
Whether to load TLS certificates from the platform's native certificate store [env: Whether to load TLS certificates from the platform's native certificate store [env:
UV_NATIVE_TLS=] UV_NATIVE_TLS=]
@ -958,7 +958,7 @@ fn help_with_global_option() {
-v, --verbose... -v, --verbose...
Use verbose output Use verbose output
--color <COLOR_CHOICE> --color <COLOR_CHOICE>
Control colors in output [default: auto] [possible values: auto, always, never] Control the use of color in output [possible values: auto, always, never]
--native-tls --native-tls
Whether to load TLS certificates from the platform's native certificate store [env: Whether to load TLS certificates from the platform's native certificate store [env:
UV_NATIVE_TLS=] UV_NATIVE_TLS=]
@ -1074,7 +1074,7 @@ fn help_with_no_pager() {
-v, --verbose... -v, --verbose...
Use verbose output Use verbose output
--color <COLOR_CHOICE> --color <COLOR_CHOICE>
Control colors in output [default: auto] [possible values: auto, always, never] Control the use of color in output [possible values: auto, always, never]
--native-tls --native-tls
Whether to load TLS certificates from the platform's native certificate store [env: Whether to load TLS certificates from the platform's native certificate store [env:
UV_NATIVE_TLS=] UV_NATIVE_TLS=]

View File

@ -104,9 +104,10 @@ uv run [OPTIONS] [COMMAND]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -572,9 +573,10 @@ uv init [OPTIONS] [PATH]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -766,9 +768,10 @@ uv add [OPTIONS] <PACKAGES|--requirements <REQUIREMENTS>>
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -1132,9 +1135,10 @@ uv remove [OPTIONS] <PACKAGES>...
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -1484,9 +1488,10 @@ uv sync [OPTIONS]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -1873,9 +1878,10 @@ uv lock [OPTIONS]
<p>Equivalent to <code>--frozen</code>.</p> <p>Equivalent to <code>--frozen</code>.</p>
<p>May also be set with the <code>UV_FROZEN</code> environment variable.</p> <p>May also be set with the <code>UV_FROZEN</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -2189,9 +2195,10 @@ uv export [OPTIONS]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -2565,9 +2572,10 @@ uv tree [OPTIONS]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -3033,9 +3041,10 @@ uv tool run [OPTIONS] [COMMAND]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -3354,9 +3363,10 @@ uv tool install [OPTIONS] <PACKAGE>
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -3687,9 +3697,10 @@ uv tool upgrade [OPTIONS] <NAME>...
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -3976,9 +3987,10 @@ uv tool list [OPTIONS]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -4086,9 +4098,10 @@ uv tool uninstall [OPTIONS] <NAME>...
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -4208,9 +4221,10 @@ uv tool update-shell [OPTIONS]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -4348,9 +4362,10 @@ uv tool dir [OPTIONS]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -4548,9 +4563,10 @@ uv python list [OPTIONS]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -4696,9 +4712,10 @@ uv python install [OPTIONS] [TARGETS]...
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -4863,9 +4880,10 @@ uv python find [OPTIONS] [REQUEST]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -5008,9 +5026,10 @@ uv python pin [OPTIONS] [REQUEST]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -5156,9 +5175,10 @@ uv python dir [OPTIONS]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -5282,9 +5302,10 @@ uv python uninstall [OPTIONS] <TARGETS>...
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -5465,9 +5486,10 @@ uv pip compile [OPTIONS] <SRC_FILE>...
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -5934,9 +5956,10 @@ uv pip sync [OPTIONS] <SRC_FILE>...
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -6331,9 +6354,10 @@ uv pip install [OPTIONS] <PACKAGE|--requirements <REQUIREMENTS>|--editable <EDIT
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -6801,9 +6825,10 @@ uv pip uninstall [OPTIONS] <PACKAGE|--requirements <REQUIREMENTS>>
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -6953,9 +6978,10 @@ uv pip freeze [OPTIONS]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -7087,9 +7113,10 @@ uv pip list [OPTIONS]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -7317,9 +7344,10 @@ uv pip show [OPTIONS] [PACKAGE]...
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -7451,9 +7479,10 @@ uv pip tree [OPTIONS]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -7668,9 +7697,10 @@ uv pip check [OPTIONS]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -7822,9 +7852,10 @@ uv venv [OPTIONS] [PATH]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -8086,9 +8117,10 @@ uv build [OPTIONS] [SRC]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -8433,9 +8465,10 @@ uv publish [OPTIONS] [FILES]...
<p>The index must provide one of the supported hashes (SHA-256, SHA-384, or SHA-512).</p> <p>The index must provide one of the supported hashes (SHA-256, SHA-384, or SHA-512).</p>
<p>May also be set with the <code>UV_PUBLISH_CHECK_URL</code> environment variable.</p> <p>May also be set with the <code>UV_PUBLISH_CHECK_URL</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -8629,9 +8662,10 @@ uv cache clean [OPTIONS] [PACKAGE]...
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -8751,9 +8785,10 @@ uv cache prune [OPTIONS]
<p>In <code>--ci</code> mode, uv will prune any pre-built wheels from the cache, but retain any wheels that were built from source.</p> <p>In <code>--ci</code> mode, uv will prune any pre-built wheels from the cache, but retain any wheels that were built from source.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -8875,9 +8910,10 @@ uv cache dir [OPTIONS]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -9013,9 +9049,10 @@ uv self update [OPTIONS] [TARGET_VERSION]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -9132,9 +9169,10 @@ uv version [OPTIONS]
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>
@ -9297,9 +9335,10 @@ uv help [OPTIONS] [COMMAND]...
<p>To view the location of the cache directory, run <code>uv cache dir</code>.</p> <p>To view the location of the cache directory, run <code>uv cache dir</code>.</p>
<p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_CACHE_DIR</code> environment variable.</p>
</dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control colors in output</p> </dd><dt><code>--color</code> <i>color-choice</i></dt><dd><p>Control the use of color in output.</p>
<p>By default, uv will automatically detect support for colors when writing to a terminal.</p>
<p>[default: auto]</p>
<p>Possible values:</p> <p>Possible values:</p>
<ul> <ul>