Usage:
tflint --chdir=DIR/--recursive [OPTIONS]
Application Options:
-v, --version Print TFLint
version
--init Install plugins
--langserver Start language
server
-f, --format=[default|json|checkstyle|junit|compact|sarif] Output format
-c, --config=FILE Config file
name (default:
.tflint.hcl)
--ignore-module=SOURCE Ignore module
sources
--enable-rule=RULE_NAME Enable rules
from the
command line
--disable-rule=RULE_NAME Disable rules
from the
command line
--only=RULE_NAME Enable only
this rule,
disabling all
other defaults.
Can be
specified
multiple times
--enable-plugin=PLUGIN_NAME Enable plugins
from the
command line
--var-file=FILE Terraform
variable file
name
--var='foo=bar' Set a Terraform
variable
--call-module-type=[all|local|none] Types of module
to call
(default: local)
--chdir=DIR Switch to a
different
working
directory
before
executing the
command
--recursive Run command in
each directory
recursively
--filter=FILE Filter issues
by file names
or globs
--force Return zero
exit status
even if issues
found
--minimum-failure-severity=[error|warning|notice] Sets minimum
severity level
for exiting
with a non-zero
error code
--color Enable
colorized output
--no-color Disable
colorized output
--fix Fix issues
automatically
--no-parallel-runners Disable
per-runner
parallelism
--max-workers=N Set maximum
number of
workers in
recursive
inspection
(default:
number of CPUs)
Help Options:
-h, --help Show this help
message
Options (24)
| Option | Description | Source |
|---|---|---|
-v, --version | Print TFLint version | help |
--init | Install plugins | help |
--langserver | Start language server | help |
-f, --format | Output format | help |
-c, --config FILE | Config file name (default: .tflint.hcl) | help |
--ignore-module SOURCE | Ignore module sources | help |
--enable-rule RULE_NAME | Enable rules from the command line | help |
--disable-rule RULE_NAME | Disable rules from the command line | help |
--only RULE_NAME | Enable only this rule, disabling all other defaults. | help |
--enable-plugin PLUGIN_NAME | Enable plugins from the command line | help |
--var-file FILE | Terraform variable file name | help |
--var 'foo=bar' | Set a Terraform variable | help |
--call-module-type all|local|none | Types of module to call (default: local) | help |
--chdir DIR | Switch to a different working directory before executing the command | help |
--recursive | Run command in each directory recursively | help |
--filter FILE | Filter issues by file names or globs | help |
--force | Return zero exit status even if issues found | help |
--minimum-failure-severity error|warning|notice | Sets minimum severity level for exiting with a non-zero error code | help |
--color | Enable colorized output | help |
--no-color | Disable colorized output | help |
--fix | Fix issues automatically | help |
--no-parallel-runners | Disable per-runner parallelism | help |
--max-workers N | Set maximum number of workers in recursive inspection (default: number of CPUs) | help |
-h, --help | Show this help message | help |