Skip to content

Commit c90eb28

Browse files
aadelbnothing-991
authored andcommitted
docs: document SHELL_VERBOSITY environment variable (python-poetry#10678)
Add documentation explaining how to set verbosity level using the SHELL_VERBOSITY environment variable. This is useful in CI/CD pipelines or scripts where command-line arguments cannot be easily modified.
1 parent 65d4009 commit c90eb28

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/cli.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@ then `--help` combined with any of those can give you more information.
2121
## Global Options
2222

2323
* `--verbose (-v|vv|vvv)`: Increase the verbosity of messages: "-v" for normal output, "-vv" for more verbose output and "-vvv" for debug.
24+
25+
{{% note %}}
26+
You can also set the verbosity level using the `SHELL_VERBOSITY` environment variable.
27+
This is useful in CI/CD pipelines or scripts where you cannot easily modify command-line arguments.
28+
29+
| Value | Equivalent | Description |
30+
|--------|------------|---------------------|
31+
| `-1` | `-q` | Quiet mode |
32+
| `0` | (default) | Normal output |
33+
| `1` | `-v` | Verbose output |
34+
| `2` | `-vv` | More verbose output |
35+
| `3` | `-vvv` | Debug output |
36+
37+
{{% /note %}}
38+
2439
* `--help (-h)` : Display help information.
2540
* `--quiet (-q)` : Do not output any message.
2641
* `--ansi`: Force ANSI output.

0 commit comments

Comments
 (0)