Skip to main content
This reference documents Qlty CLI v0.668.0.
Auto-format files by rewriting them By default, only changed files are auto-formatted. Use --all or specify paths to override this behavior. Installs plugins and their required runtimes as needed before analyzing. Must be run within a Git repository with Qlty initialized.

Arguments

Files to analyze
Check all files, not just changed
Disable progress bar
Exit successfully regardless of linter errors
Sample results from a number of files for each linter
Maximum number of concurrent jobs
Only run these formatter plugins (comma-separated)Examples: —filter prettier Run only prettier —filter prettier,black Run only prettier and blackUse with —skip to remove plugins from what —filter selects.
Don’t run these formatter plugins (comma-separated)Examples: —skip prettier Run every formatter except prettier —skip prettier,black Run every formatter except prettier and blackWith —filter, —filter picks what runs first and —skip removes from it. When both match, —skip wins: —filter prettier,black —skip black Run only prettierEvery plugin named must be enabled, and skipping every plugin is an error.
Run as this trigger, so only formatters whose triggers include it runEach plugin’s triggers list in qlty.toml names the triggers it runs on. A plugin with no triggers list runs on every trigger. Qlty’s git hooks pass pre-commit to qlty fmt and pre-push to qlty check.Examples: —trigger pre-commit Run only formatters that run on pre-commit[default: manual] [possible values: manual, ide, agent, pre-commit, pre-push, build]
Print verbose output
Upstream base ref to compare against
Format files in the Git index
Format files in the specified Git index file
Skip fetching sources before formatting

Examples

Auto-format changed files on your current branch
Auto-format all files with prettier
Auto-format files in a directory

See Also