Command-line interface

Deslint CLI — verify, fix, and attest from the terminal.

The CLI is the deterministic engine underneath every Deslint surface. It scans, fixes, and emits a Sigstore-ready attestation you can commit as a trailer. Use it standalone for pre-commit hooks and local development, or as the source of truth the MCP server and GitHub Action both delegate to.

Install

$ npm install -D @deslint/cli

Also available via pnpm add -D @deslint/cli or bun add -d @deslint/cli. Requires Node 20.19+.

Scan in 5 seconds

One command, one exit code, one Design Health Score. Run it from a pre-commit hook or CI step without any extra config — Deslint detects Tailwind, the framework, and the test surface on its own.

$ npx deslint scan Deslint Design Health Report ──────────────────────────────────────────────────────── Design Health Score: 95/100 (pass) Colors ██████████████████░░ 95 (3 violations) Spacing ███████████████████░ 97 (2 violations) Typography ████████████████████ 100 Responsive █████████████████░░░ 92 (5 violations) Consistency ████████████████████ 100 Files scanned: 247 Files with issues: 8 Total violations: 10 warnings, 0 errors Design debt: 42m estimated remediation effort See https://deslint.com/docs/rules for fixes.

Every command

Exit codes

Deterministic exit codes so CI and pre-commit hooks can branch without parsing output.

ExitMeaning
0Clean scan — no violations of the configured severity or budget.
1Violations found. Default fires only on `error` severity; override with `--fail-on`.
2Usage error — bad flag, missing argument, or unreadable config.

Why a local CLI — not a cloud service

Full getting-started guideAll 34 rulesMCP server instead