Skip to content

mille analyze

Overview

Terminal window
mille analyze
mille analyze ./path/to/project # specify target directory

Visualizes actual dependencies as a graph without enforcing rules. Ideal for understanding the current state of your architecture before running mille check.

You can pass a project directory as a positional argument. Defaults to the current directory (.) if omitted.

mille analyze always exits with code 0.

Output Formats

Terminal window
mille analyze # terminal output (default)
mille analyze --format json # JSON graph
mille analyze --format dot # Graphviz DOT
mille analyze --format svg # self-contained SVG

SVG Output

Terminal window
mille analyze --format svg > graph.svg && open graph.svg

Generates an SVG file you can open in a browser (dark theme, green edges).

DOT Output (Graphviz)

Terminal window
mille analyze --format dot | dot -Tsvg -o graph.svg

JSON Output Example

{
"layers": ["domain", "usecase", "infrastructure"],
"edges": [
{ "from": "usecase", "to": "domain" },
{ "from": "infrastructure", "to": "domain" }
]
}