This document contains the help content for the sqruff
command-line program.
Command Overview:
sqruff is a sql formatter and linter
Usage: sqruff [OPTIONS] <COMMAND>
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 environment
-
--config <CONFIG>
— Path to a configuration file -
--parsing-errors
— Show parse errorsDefault value:
false
Lint SQL files via passing a list of files or using stdin
Usage: sqruff lint [OPTIONS] [PATHS]...
<PATHS>
— Files or directories to fix. Use-
to read from stdin
-
-f
,--format <FORMAT>
Default value:
human
Possible values:
human
,github-annotation-native
,json
Fix SQL files via passing a list of files or using stdin
Usage: sqruff fix [OPTIONS] [PATHS]...
<PATHS>
— Files or directories to fix. Use-
to read from stdin
-
--force
— Skip the confirmation prompt and go straight to applying fixes -
-f
,--format <FORMAT>
Default value:
human
Possible values:
human
,github-annotation-native
,json
Run an LSP server
Usage: sqruff lsp
Print information about sqruff and the current environment
Usage: sqruff info
This document was generated automatically by
clap-markdown
.