CLI Reference¶
Usage: sawmill [OPTIONS] [LOGFILE]
Flag |
Type |
Default |
Description |
|---|---|---|---|
|
path |
Log file to analyze. Opens TUI unless batch flags are present. |
|
|
flag |
Show version and exit. |
|
|
flag |
List all available plugins and exit. |
|
|
string |
Force a specific plugin (bypasses auto-detection). |
|
|
flag |
Show detailed info about a plugin. Requires |
|
|
flag |
List available grouping fields from the plugin and exit. |
|
|
flag |
List available severity levels from the plugin and exit. |
|
|
string |
Filter to show only messages at or above this severity level. See CLI Usage. |
|
|
string |
Regex pattern to include matching messages. |
|
|
string |
Regex pattern to exclude matching messages. Repeatable. See CLI Usage. |
|
|
string |
Message ID to exclude. Repeatable. |
|
|
choice |
|
Output format: |
|
string |
Message ID pattern to include (supports wildcards, e.g. |
|
|
string |
Category to include (from plugin pre-defined filters). Repeatable. |
|
|
flag |
Generate waiver TOML from log messages. Output to stdout. See Waivers. |
|
|
int |
|
Minimum severity level for waiver generation. |
|
flag |
Check mode: exit 1 if unwaived messages above threshold. See CI Integration. |
|
|
string |
With |
|
|
path |
Path to waiver TOML file. See Waivers. |
|
|
flag |
Display messages that were waived (with waiver reasons). |
|
|
flag |
Report waivers that didn’t match any messages (stale waivers). |
|
|
path |
Write JSON summary report to this file. See CI Integration. |
|
|
flag |
Show summary counts by severity and message ID. |
|
|
choice |
Group output by field: |
|
|
int |
|
Limit messages shown per group with |
|
flag |
Force batch mode (no TUI). Implied by any output/filter/check flag. |
|
|
flag |
Show help and exit. |
Batch mode detection¶
Sawmill runs in batch mode (no TUI) when any of these conditions are true:
--batchis passed.Any filter, output, or check flag is present (
--severity,--filter,--suppress,--id,--category,--formatexplicitly set,--check,--fail-on,--waivers,--show-waived,--report-unused,--report,--summary,--group-by,--generate-waivers).Standard input is not a TTY (piped input,
CliRunner, etc.).