CLI tool that statically analyzes GDScript (Godot Engine) projects and outputs a structured JSON graph of files, code metrics, and inter-file relationships.
Requires Python 3.10+.
pip install gdscript-code-graph# Analyze a Godot project (output to stdout)
gdscript-code-graph analyze <project-dir>
# Write output to a file
gdscript-code-graph analyze <project-dir> -o graph.json
# Custom repo name and directory exclusions
gdscript-code-graph analyze <project-dir> -o graph.json --repo-name my-game -e addons -e test| Flag | Description |
|---|---|
-o, --out
|
Output file path (default: stdout) |
--repo-name |
Repository name in output (default: directory name) |
-e, --exclude
|
Directory names to exclude (repeatable) |
The output format is documented in simple-code-graph-viewer/docs/schema.md.