Skip to main content
VectorLint runs from the command line. You invoke it against one or more files and it prints findings to standard output. This page is the complete reference for all commands, flags, and exit behavior.

Basic usage

Run a check against one file:
Run against multiple files or a glob pattern:

Commands

vectorlint init

Initializes VectorLint in your project. Generates configuration files based on the mode you choose.
Creates two files:

--quick flag

Zero-config mode. Creates only a VECTORLINT.md file in your project root. VectorLint detects it automatically and creates a “Style Guide Compliance” rule from its contents — no .vectorlint.ini required.

vectorlint --help

Prints available commands and flags.

Flags

Output

VectorLint prints findings to standard output. Each finding includes the rule that triggered it, the location in the file, the specific violation, and a suggested fix. A file with no violations produces no output.

Exit codes

Exit codes make VectorLint suitable for CI pipelines. A non-zero exit blocks a merge when content fails quality checks. See CI Integration for setup examples.

Environment variables

VectorLint reads configuration from environment variables in addition to config files. Project-level .env values take precedence over the global config.toml. For the full environment variable reference see Environment variables.