Command-Line Help for sqruff¶
This document contains the help content for the sqruff command-line program.
Command Overview:
sqruff↴sqruff lint↴sqruff fix↴sqruff lsp↴sqruff info↴sqruff rules↴sqruff dialects↴sqruff templaters↴
sqruff¶
sqruff is a sql formatter and linter
Usage: sqruff [OPTIONS] <COMMAND>
Subcommands:¶
lint— Lint SQL files via passing a list of files or using stdinfix— Fix SQL files via passing a list of files or using stdinlsp— Run an LSP serverinfo— Print information about sqruff and the current environmentrules— Explain the available rulesdialects— List available dialectstemplaters— List available templaters
Options:¶
--config <CONFIG>— Path to a configuration file--dialect <DIALECT>— Override the dialect (e.g., bigquery, clickhouse, ansi)--parsing-errors— Show parse errors
Default value: false
sqruff lint¶
Lint SQL files via passing a list of files or using stdin
Usage: sqruff lint [OPTIONS] [PATHS]...
Arguments:¶
<PATHS>— Files or directories to fix. Use-to read from stdin
Options:¶
-f,--format <FORMAT>
Default value: human
Possible values: human, github-annotation-native, json
sqruff fix¶
Fix SQL files via passing a list of files or using stdin
Usage: sqruff fix [OPTIONS] [PATHS]...
Arguments:¶
<PATHS>— Files or directories to fix. Use-to read from stdin
Options:¶
-f,--format <FORMAT>— The output format for the results
Default value: human
Possible values: human, github-annotation-native, json
sqruff lsp¶
Run an LSP server
Usage: sqruff lsp
sqruff info¶
Print information about sqruff and the current environment
Usage: sqruff info
sqruff rules¶
Explain the available rules
Usage: sqruff rules
sqruff dialects¶
List available dialects
Usage: sqruff dialects
sqruff templaters¶
List available templaters
Usage: sqruff templaters
This document was generated automatically by
clap-markdown.