Getting started¶
1. Initialize configuration¶
Run flint init in your Fleet GitOps repo root:
This auto-detects your directory structure and creates .fleetlint.toml with sensible defaults.
2. Lint your repo¶
Flint scans all YAML files and reports errors, warnings, and info:
🔍 Linting directory .
File: fleets/engineering.yml
warning: 'update_new_hosts' expects a boolean value, got null
--> fleets/engineering.yml:21:22
help: Use 'true' or 'false'
Summary: Linted 121 file(s)
0 error(s)
24 warning(s)
54 info
3. Auto-fix¶
# Fix safe issues (key renames, typo corrections)
flint check . --fix
# Also apply risky fixes
flint check . --fix --unsafe-fixes
4. JSON output (for CI)¶
Returns structured JSON with diagnostics per file — exit code 1 on errors, 0 on success.
5. Set up your editor¶
Install the flint extension for your editor to get real-time diagnostics, completions, and hover docs. See Editors.