CLI Reference
sqb format
Apply canonical SQLBuild SQL formatting.
Formats SQL files using SQLBuild’s canonical, dialect-aware representation.
sqb format [flags]| Flag | Description |
|---|---|
--check |
Fail when formatting changes are needed without writing |
--diff |
Print the proposed diff without writing |
--json |
Print structured results |
--select, -s |
Format selected models |
--select-file |
Read selectors from a file |
--exclude |
Exclude models from the selected scope |
sqb formatsqb format --checksqb format --diff --select tag:martsFormatting owns presentation and source rewriting. Compiler-integrated diagnostics belong to configured Rules, which never mutate source.