This page lists every single command available in CodeGraphContext.
| Command | Description | Full Details |
|---|---|---|
cgc index |
Adds a directory to the code graph. | details |
cgc list |
Lists all indexed repositories. | details |
cgc delete |
Removes a repository from the graph. | details |
cgc watch |
Monitors a directory for real-time updates. | details |
cgc clean |
Removes orphaned nodes from the DB. | - |
cgc stats |
Show node count statistics. | - |
| Command | Description | Full Details |
|---|---|---|
cgc analyze callers |
Show what functions call X. | details |
cgc analyze calls |
Show what functions X calls (callees). | details |
cgc analyze chain |
Show path between function A and B. | details |
cgc analyze deps |
Show imports/dependencies for a module. | details |
cgc analyze tree |
Show class inheritance hierarchy. | details |
cgc analyze complexity |
Find complex functions (Cyclomatic). | details |
cgc analyze dead-code |
Find unused functions. | details |
cgc analyze overrides |
Find method overrides in subclasses. | details |
cgc analyze variable |
Find variable usage across files. | details |
| Command | Description | Full Details |
|---|---|---|
cgc find name |
Find element by exact name. | details |
cgc find pattern |
Fuzzy search (substring). | details |
cgc find type |
List all Class/Function nodes. | details |
cgc find variable |
Find variables by name. | details |
cgc find content |
Full-text search in source code. | details |
cgc find decorator |
Find functions with @decorator. |
details |
cgc find argument |
Find functions with specific arg. | details |
| Command | Description | Full Details |
|---|---|---|
cgc doctor |
Run system health check. | details |
cgc mcp setup |
Configure AI clients. | details |
cgc neo4j setup |
Configure Neo4j database. | details |
cgc config |
View or modify settings. | details |
cgc bundle export |
Save graph to .cgc file. |
details |
cgc bundle load |
Load graph from file/registry. | details |
cgc registry |
Browse cloud bundles. | details |