---
title: CLI command reference
description: Complete reference for @getchomp/cli commands: init, analyze, ui, connect, health, export, and plugin.
url: https://getchomp.dev/docs/cli
---

# CLI command reference

Run every command with `npx @getchomp/cli <command>` or install globally with `npm i -g @getchomp/cli`.

## Core commands

- `chomp init [--stealth]`: Set up Chomp in a repository: runs local analysis, saves `.chomp/graph.db`, and writes MCP & rules config for Cursor, Claude Code, Kiro, and Antigravity. Use `--stealth` for Git-clean mode.
- `chomp analyze [path]`: Build or refresh the local structural map for the repository (or a specific directory/file).
- `chomp ui [--port 5555]`: Start the local loopback bridge on `127.0.0.1:5555` and open Chomp Map (`app.getchomp.dev`) in your browser.
- `chomp connect [--stealth]`: Set the active repository for Chomp's global MCP server and Chomp Map without re-running full setup.

## Health and export

- `chomp health`: Print a completeness report: wired call percentage, uncalled exports, and `? N unresolved` call groups.
- `chomp export`: Export a static snapshot bundle of the map for CI artifacts or internal hosting.

## Running map plugins

Run any shipped plugin from the terminal or CI, with optional `--json` output for scripts.

**Run the Design system audit locally**

```bash
npx @getchomp/cli plugin run design-system
npx @getchomp/cli plugin run design-system --json
```

- `chomp plugin run design-system`: Audit design tokens, WCAG contrast pairs, hardcoded literals, arbitrary Tailwind values, and duplicate UI components.
- `chomp plugin run local-shims`: Apply your repo's Bridges definitions to link dynamic calls, DI containers, or OpenAPI specs.
- `chomp plugin run enrich-nodes`: Check and hydrate plain-English Summaries overlays and detect stale descriptions.
