Skip to main content
Commands

vg path

Show how node A connects to node B — the shortest path in the call graph.

Overview

vg path finds the shortest path between two nodes in the call graph, showing the dependency chain between them.


Usage

vg path <a> <b>
FlagDescription
<a>Source node
<b>Target node
--pick-a <n>Pick the nth candidate for A
--pick-b <n>Pick the nth candidate for B

Examples

vg path LoginController UserRepository
vg path src/api/routes.ts src/db/client.ts

Example use cases

Expand any use case to watch a live replay of the real @vibgrate/cli running against one of our test repositories. Nothing executes in your browser — these are recordings of actual runs, with the scan time shown as of now.

vg path <symbol-a> <symbol-b>

Related Documentation