Skip to main content
This reference documents Qlty CLI v0.671.0.
Run linters By default, only changed files are analyzed. Use --all or specify paths to override this behavior. Installs plugins and their required runtimes as needed before analyzing. By default, issues are cached locally to speed up subsequent runs. Must be run within a Git repository with Qlty initialized.

Arguments

Files to analyze
Check all files, not just changed
Apply all auto-fix suggestionsWhen combined with --ai, AI-generated fixes are applied without prompting for review. See AI Autofixes Security Considerations for important guidance when using this flag.
Do not apply auto-fix suggestions
Generate AI fixes (requires Qlty Cloud authentication)The fixes are generated by a large language model and require Qlty Cloud authentication. AI fixes should be reviewed before applying. Using --ai with --fix applies AI suggestions automatically without review—see Security Considerations.
Allow fixes for rules that may produce incorrect results and require careful human reviewThese are fixes for rules that may produce incorrect results and require careful human review. By default, fixes for certain rules are blocked because they are more likely to need manual judgment. This flag removes those restrictions.
Disable formatter checks
Disable progress bar
Exit successfully regardless of what issues are found
Exit successfully regardless of linter errors
Sample results from a number of files for each linter
Minimum level of issues to show[default: note] [possible values: note, fmt, low, medium, high]
Maximum number of concurrent jobs
Only run these plugins, or only report these rules (comma-separated)Each entry is a plugin name (eslint) or a plugin and rule joined by a colon (eslint:no-unused-vars). A plugin name runs only that plugin. A rule runs its plugin but reports only issues for that rule.Examples: —filter eslint Run only eslint —filter eslint,rubocop Run only eslint and rubocop —filter eslint:no-unused-vars Report only eslint’s no-unused-vars issues —filter eslint,rubocop:Style/StringLiterals Report all eslint issues and only rubocop’s Style/StringLiterals issuesUse with —skip to remove plugins or rules from what —filter selects.
Don’t run these plugins, or don’t report these rules (comma-separated)Each entry is a plugin name (rubocop) or a plugin and rule joined by a colon (rubocop:Style/StringLiterals). A plugin name stops that plugin from running. A rule still runs its plugin but drops issues for that rule.Examples: —skip rubocop Run every plugin except rubocop —skip rubocop,shellcheck Run every plugin except rubocop and shellcheck —skip rubocop:Style/StringLiterals Run every plugin; drop that one rubocop ruleWith —filter, —filter picks what runs first and —skip removes from it. When both match, —skip wins: —filter eslint,rubocop —skip rubocop Run only eslint —filter eslint —skip eslint:no-console Run only eslint; drop its no-console issuesEvery plugin named must be enabled, and skipping every plugin is an error.
Run as this trigger, so only plugins 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-push Run only plugins that run on pre-push[default: manual] [possible values: manual, ide, agent, pre-commit, pre-push, build]
Print verbose output
Print a summary of issues
Upstream base ref to compare against
Disable caching issues
Minimum level of issues to fail on[default: fmt] [possible values: note, fmt, low, medium, high]
SARIF output
Install tools only, do not run checks
Skip fetching sources before running checks

Examples

Run linters on changed files on your current branch
Run linters on all files
Run only ESLint on all files
Run linters on the web/ folder

See Also