Skip to content

Global flags ​

Every tfcensus command accepts these flags, before or after the command name. -h, --help prints the help of any command.

FlagDescriptionTypeDefaultValuesConfig keyNotes
--colorcolorize output: auto, always or neverstringautoauto: color on a terminal unless NO_COLOR is set
always: always color
never: never color
--configconfig file to use instead of the discovered .tfcensus.yaml (env TFCENSUS_CONFIG)string
--formatoutput format: tty, plain, md, json, csv, sarif or github (default tty when stdout is a terminal, else plain)stringtty: table with color for a terminal
plain: table without color
md: Markdown
json: JSON envelope for scripts
csv: comma-separated values
sarif: SARIF 2.1.0 for code scanning
github: GitHub Actions annotations
--log-filewrite logs to this file instead of stderrstring
--log-formatlog format: text or jsonstringtexttext: human-readable lines
json: one JSON object per line
--no-inputnever prompt for inputbool
-q, --quietlog errors onlyboolnot with --verbose
--tf-pathterraform or tofu binary, passed to terragrunt as --tf-path (config binaries.terraform)stringterraformbinaries.terraform
--tg-pathterragrunt binary (config binaries.terragrunt)stringterragruntbinaries.terragrunt
--tofu-pathtofu binary that --decrypt-with-tofu runs (config binaries.tofu)stringtofubinaries.tofu
-v, --verbosemore logging: -v info, -vv debug, -vvv tracecountnot with --quiet

Each command page lists the --format values that command accepts.