Skip to main content

Usage

devgraph build [paths...] [options]

Arguments

ArgumentDescriptionDefault
pathsGlob patterns for Markdown files**/*.md

Options

OptionDescription
--compare <file>Compare with previous graph.json for diff
--helpShow help

Examples

Build from all Markdown files in docs:
devgraph build docs/*.md
Build from multiple directories:
devgraph build docs/*.md architecture/*.md
Build with diff comparison:
devgraph build docs/*.md --compare .devgraph/graph.json

Output

Creates the following in .devgraph/:
FileDescription
graph.jsonMachine-readable project graph
summary.mdHuman-readable overview with tables
agents/*.mdPer-service context files for LLMs
system.mmdMermaid diagram of service dependencies
codemap.mmdMermaid diagram of repo structure