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 filesfix
— fix fileslsp
— Run an LSP server
--config <CONFIG>
— Path to a configuration file
lint files
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 files
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
This document was generated automatically by
clap-markdown
.