@lifesavertech/archguard-cli
v2.2.0
Published
Command-line interface for ArchGuard
Downloads
119
Maintainers
Readme
@lifesavertech/archguard-cli
Command-line interface for ArchGuard — architecture gate for AI-assisted React PRs.
Install
npm install -D @lifesavertech/archguard-cli
npx archguard --versionUntil published to npm, use the GitHub Action or install from source.
The legacy scope
@archguard/clion npm is an unrelated package. Do not use it.
Usage
archguard init # boundaries-only (v2 default)
archguard init --preset react-layered # boundaries + UI heuristics
archguard init --preset feature-sliced-react
archguard check
archguard check --root apps/web --verbose
archguard check --baseline
archguard check --format jsonPresets
| Preset | UI heuristics | Layers |
| --- | --- | --- |
| (default) / boundaries-only | Off | domain, features, ui, shared |
| react-layered | On | domain, features, ui, shared |
| feature-sliced-react | On | FSD: app, pages, features, entities, shared |
Preset definitions live in src/presets/.
Documentation
| Doc | Purpose | | --- | --- | | ADOPTION.md | Setup guide | | architecture.example.yaml | Config reference | | ENGINEERING_PLAN.md | v2 roadmap |
Full documentation: github.com/lindseystead/ArchGuard
