Skip to content

CLI reference

Command What it does
init [--dry-run] Install and configure everything. Safe to re-run; never overwrites your config.
doctor [--json] Diagnose the setup. Read-only. Exit code 1 only if something is broken.
run [checks…] Run the project’s checks in order (--list, --keep-going).
check, check:fix, ci Run biome check, biome check --write, biome ci.
commit (c) Guided Conventional Commit, run by Commitizen. Git flags go after --.
check-commit Validate messages with commitlint: --message, --commit-msg-file, --rev-range, -d.
ui [--port n] [--no-open] The local dashboard.
I want to… Command Guide
Preview setup changes npx lintlane init --dry-run Setup
Inspect code without writing npx lintlane check Check and fix
Apply supported fixes npx lintlane check:fix Check and fix
Run lint, types, build, and tests when available npx lintlane run Project checks
See available pipeline checks npx lintlane run --list Project checks
Review issues in a browser npx lintlane ui Dashboard
Write a guided commit message npx lintlane commit Commits
Validate branch commit messages npx lintlane check-commit -d Pushing
Diagnose configuration npx lintlane doctor Doctor
Command Result
npx lintlane doctor Read-only report covering tools, hooks, configuration, and CI, with suggested fixes.
npx lintlane doctor --json Machine-readable report.
npx lintlane --help Main commands and setup/dashboard options.
npx lintlane commit --help Guided commit options.
npx lintlane check-commit --help Message validation options.

doctor exits with code 1 for broken setup; warnings alone do not fail it. Resolve reported issues, then run it again.

Husky invokes these automatically through the generated .husky scripts. They are implementation entry points rather than normal daily commands.

Entry point Utility invoked
lintlane hook pre-commit lint-staged.
lintlane hook prepare-commit-msg <message-file> [source] Commitizen when eligible.
lintlane hook commit-msg <message-file> commitlint on the message file.
lintlane hook pre-push <remote> [url] commitlint on outgoing history, using Git’s ref updates from standard input.

The separate lintlane-mcp --project /absolute/path/to/project [--allow-write] binary starts the local stdio server for AI assistants. It is available after package installation; it is not a lintlane subcommand. See AI assistants & MCP for host configuration and tools.