Skip to content

Installation

archlint can be used as a CLI tool or as an ESLint plugin.

The easiest way to use archlint is via npx. This ensures you're always using the latest version without adding it to your package.json.

bash
npx @archlinter/cli scan

Global Installation

If you want to install archlint globally for use across all projects:

bash
npm install -g @archlinter/cli
bash
pnpm add -g @archlinter/cli
bash
yarn global add @archlinter/cli
bash
bun add -g @archlinter/cli
bash
deno install -g npm:@archlinter/cli

After global installation, you can run archlint directly:

bash
archlint scan

Local Installation

Alternatively, you can install it as a dev dependency in your project:

bash
npm install -D @archlinter/cli
bash
pnpm add -D @archlinter/cli
bash
yarn add -D @archlinter/cli
bash
bun add -D @archlinter/cli
bash
deno install npm:@archlinter/cli

From Source (Rust)

If you prefer to use the native binary directly, you can install it via Cargo:

bash
cargo install archlint

ESLint Plugin

To get real-time architectural feedback in your IDE, install the ESLint plugin:

bash
npm install -D @archlinter/eslint-plugin
bash
pnpm add -D @archlinter/eslint-plugin
bash
yarn add -D @archlinter/eslint-plugin
bash
bun add -D @archlinter/eslint-plugin
bash
deno install npm:@archlinter/eslint-plugin

See the ESLint Integration section for configuration details.

MCP Server

If you're using AI coding assistants like Claude or Cursor, you can install our MCP server:

bash
npx @archlinter/mcp-server

See the MCP Server section for more information.

GitHub Action

To prevent architectural regressions in your Pull Requests, use our official GitHub Action:

yaml
- name: archlint
  uses: archlinter/action@v1
  with:
    baseline: origin/${{ github.base_ref }}
    fail-on: medium
    github-token: ${{ github.token }}

See the GitHub Actions section for more information.

Released under the MIT License.