Global flags
Every tfcensus command accepts these flags, before or after the command name. -h, --help prints the help of any command.
| Flag | Description | Type | Default | Values | Config key | Notes |
|---|---|---|---|---|---|---|
--color | colorize output: auto, always or never | string | auto | auto: color on a terminal unless NO_COLOR is setalways: always colornever: never color | ||
--config | config file to use instead of the discovered .tfcensus.yaml (env TFCENSUS_CONFIG) | string | ||||
--format | output format: tty, plain, md, json, csv, sarif or github (default tty when stdout is a terminal, else plain) | string | tty: table with color for a terminalplain: table without colormd: Markdownjson: JSON envelope for scriptscsv: comma-separated valuessarif: SARIF 2.1.0 for code scanninggithub: GitHub Actions annotations | |||
--log-file | write logs to this file instead of stderr | string | ||||
--log-format | log format: text or json | string | text | text: human-readable linesjson: one JSON object per line | ||
--no-input | never prompt for input | bool | ||||
-q, --quiet | log errors only | bool | not with --verbose | |||
--tf-path | terraform or tofu binary, passed to terragrunt as --tf-path (config binaries.terraform) | string | terraform | binaries.terraform | ||
--tg-path | terragrunt binary (config binaries.terragrunt) | string | terragrunt | binaries.terragrunt | ||
--tofu-path | tofu binary that --decrypt-with-tofu runs (config binaries.tofu) | string | tofu | binaries.tofu | ||
-v, --verbose | more logging: -v info, -vv debug, -vvv trace | count | not with --quiet |
Each command page lists the --format values that command accepts.