vis graph
Visualize the project dependency graph
vis graph
Visualize the project dependency graph in various formats.
Usage
vis graph [options]Examples
vis graph
vis graph --format=ascii
vis graph --format=dot
vis graph --format=json --output=graph.json
vis graph --format=html --output=graph.html
vis graph --depth=2Options
| Option | Alias | Default | Description |
|---|---|---|---|
--format | -f | tui/ascii | Output format: tui, ascii, dot, json, html (default: tui in a TTY, ascii otherwise) |
--output | -o | stdout | Write output to file instead of stdout |
--depth | -d | unlimited | Maximum dependency tree depth for ASCII output |
Output Formats
TUI / ASCII (default)
In an interactive terminal vis graph opens an interactive TUI; when piped or redirected it falls back to a tree-style ASCII representation. Best for quick inspections.
DOT
Outputs Graphviz DOT format. Render with:
vis graph --format=dot --output=graph.dot
dot -Tpng graph.dot -o graph.pngJSON
Machine-readable format listing nodes and edges. Useful for custom tooling.
HTML
Self-contained HTML file with an interactive graph visualization.