Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,25 @@ then `--help` combined with any of those can give you more information.
## Global Options

* `--verbose (-v|vv|vvv)`: Increase the verbosity of messages: "-v" for normal output, "-vv" for more verbose output and "-vvv" for debug.

{{% note %}}
You can also set the verbosity level using the `SHELL_VERBOSITY` environment variable.
This is useful in CI/CD pipelines or scripts where you cannot easily modify command-line arguments.

| Value | Equivalent | Description |
|-------|------------|-------------|
| `-1` | `-q` | Quiet mode |
| `0` | (default) | Normal output |
| `1` | `-v` | Verbose output |
| `2` | `-vv` | More verbose output |
| `3` | `-vvv` | Debug output |

For example, to enable debug output:
```bash
export SHELL_VERBOSITY=3
poetry install
```
Comment on lines +37 to +41
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I would omit the example because in this case you can just use command-line arguments and I hope people who cannot use command-line arguments are able to figure out for themselves how to set an environment variable.

{{% /note %}}
* `--help (-h)` : Display help information.
* `--quiet (-q)` : Do not output any message.
* `--ansi`: Force ANSI output.
Expand Down