vulkro code-graph
Ranked, symbol-level code graph and impact, WITHOUT a full scan.
Command reference
Generated from vulkro code-graph --help (vulkro 0.36.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.
Ranked, symbol-level code graph and impact, WITHOUT a full scan.
vulkro code-graph [OPTIONS] [PATH]
Arguments
| Argument | Description |
|---|---|
[PATH] | Path to the project root (default: current directory) Default: .. |
Options
| Flag | Description |
|---|---|
--mode <MODE> | What to return: map | impact | callers | callees | search | body | outline. Default: map. |
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--symbol <SYMBOL> | The symbol for impact / callers / callees / body, as file::name or a bare name (required unless mode is map or search) |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
--query <QUERY> | Search mode: the text to find (default: the name part of --symbol). Matched as a whole identifier when it is one. |
--substring | Search mode: match the query anywhere, not only as a whole identifier. |
--context <CONTEXT> | Search mode: lines of context above and below each hit (max 5) Default: 1. |
--offset <OFFSET> | Search mode: index of the first hit to return (the previous page's next_offset) Default: 0. |
--max-symbols <MAX_SYMBOLS> | Maximum rows to return (the honesty header still reports the true total; raise this only when you want the whole list). In search mode, the number of hits per page. Default: 40. |
--max-tokens <MAX_TOKENS> | Optional hard token ceiling; lowest-ranked rows are trimmed to fit. |
--file <FILE> | Outline mode: the file to outline, absolute or relative to PATH. Works on one file without building the graph, and also covers Rust. |
-h, --help | Print help (see a summary with '-h') |
Full vulkro code-graph --help
Ranked, symbol-level code graph and impact, WITHOUT a full scan.
Builds the resolved call graph and answers structural queries for an AI agent (or a person) navigating or about to change code: a PageRank-ranked map, the transitive blast radius of one symbol, or its direct callers / callees. `--mode search --query NAME` is a grep replacement: every usage of NAME with its code lines, labelled by the graph (definition, call, reference, import, comment), production before tests, paged with `--offset`. `--mode body --symbol NAME` returns one function's source (not its whole file) with its callees and callers. `--mode outline --file F` lists one file's declarations with line ranges and signatures, without building the graph (any supported language, plus Rust). Emits deterministic JSON. This is code structure only: it asserts nothing about vulnerabilities, and every reach count is a floor.
Exit code: 0 graph printed, 2 IO / argument error.
Usage: vulkro code-graph [OPTIONS] [PATH]
Arguments:
[PATH]
Path to the project root (default: current directory)
[default: .]
Options:
--mode <MODE>
What to return: map | impact | callers | callees | search | body | outline
[default: map]
--offline
Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set
-q, --quiet
Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged
--symbol <SYMBOL>
The symbol for impact / callers / callees / body, as `file::name` or a bare `name` (required unless mode is `map` or `search`)
--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb
--query <QUERY>
Search mode: the text to find (default: the name part of --symbol). Matched as a whole identifier when it is one
--substring
Search mode: match the query anywhere, not only as a whole identifier
--context <CONTEXT>
Search mode: lines of context above and below each hit (max 5)
[default: 1]
--offset <OFFSET>
Search mode: index of the first hit to return (the previous page's `next_offset`)
[default: 0]
--max-symbols <MAX_SYMBOLS>
Maximum rows to return (the honesty header still reports the true total; raise this only when you want the whole list). In search mode, the number of hits per page
[default: 40]
--max-tokens <MAX_TOKENS>
Optional hard token ceiling; lowest-ranked rows are trimmed to fit
--file <FILE>
Outline mode: the file to outline, absolute or relative to PATH. Works on one file without building the graph, and also covers Rust
-h, --help
Print help (see a summary with '-h')