Graphify CLI Cheatsheet

Reference · v0.8.39

Core Workflow

CommandWhat it does
graphify .Full build: extract + cluster + report. First time on a project.
graphify update .Re-extract changed files, update graph. Fast refresh.
graphify update . --forceForce overwrite even if new graph has fewer nodes (post-refactor).
graphify watch .Watch for changes, auto-rebuild.
graphify hook installGit post-commit hook for automatic updates.

Query & Explore

CommandWhat it does
graphify path "A" "B"Shortest path between two nodes.
graphify explain "X"Plain-language explanation of a node + neighbors.
graphify benchmarkMeasure token reduction vs. naive full-file approach.
graphify export callflow-htmlMermaid-based architecture page with call-flow diagrams.

Platform Integration

CommandWhat it does
graphify kiro installProject-scoped: writes .kiro/skills/graphify/
graphify installClaude Code: writes to CLAUDE.md + PreToolUse hook
graphify install --platform codexCodex: writes to AGENTS.md

Multi-Repo

CommandWhat it does
graphify . --globalAlso merge into global graph (~/.graphify/global-graph.json)
graphify global listList repos in the global graph.
graphify merge-graphs g1.json g2.jsonMerge two graph files into one cross-repo graph.
graphify clone <github-url>Clone a repo locally for graphing.

Output Files

FilePurposeConsumer
graphify-out/graph.jsonFull graph: nodes + edgesAI assistant
graphify-out/GRAPH_REPORT.mdSummary: communities, key nodes, questionsHuman + AI
graphify-out/graph.htmlInteractive visualizationHuman (browser)

Flags

FlagEffect
--no-clusterSkip LLM clustering, write raw extraction only (fast, no API key needed).
--no-vizSkip graph.html generation (large graphs, CI).
--no-labelKeep "Community N" placeholders instead of LLM-named clusters.
--backend=<name>LLM backend for clustering (auto-detect by default).
--max-concurrency NParallel extraction chunks (default 4, set 1 for local LLMs).