# axon trace

Source: https://usecns.dev/axon-cli-trace/

[Start here](https://usecns.dev/manual-axon/)
[CLI commands](https://usecns.dev/commands-axon/)
[Configuration & integration](https://usecns.dev/axon-topics/)

```
axon trace <symbol-or-node-id> [--direction <direction>] [--depth <hops>]
  [--max-depth <hops>] [--max-nodes <count>] [--max-fanout <count>]
  [--edge-types <comma-separated-types>] [--min-confidence <class>] [--no-external] [--json]
```

Defaults: outgoing, depth 2, max-nodes 100, max-fanout 64, confidence `framework-inferred`, external nodes included. `--max-depth` overrides `--depth`. Direction synonyms: outgoing/downstream/forward, incoming/upstream/reverse, both (case-insensitive). Invalid directions fail. Confidence classes: proven, artifact-backed, framework-inferred, heuristic; the parser stores a string and the ranking helper defaults unknown classes to framework-inferred rank rather than strictly enum-validating them.

Default edge types: calls, references, handled\_by, extends, implements, dispatches\_job, handles\_job, emits\_event, listens\_event. `--edge-types` replaces that set; comma-separated whitespace is trimmed. Missing start symbols exit 1 (`error: not-found` in JSON); ambiguous starts exit 1 with candidates. Resolved but budget-limited walks are reported, not equivalent to exhaustive reach.

See [CLI conventions](https://usecns.dev/axon-cli-usage/) for shared configuration and exit behavior, or [browse all commands](https://usecns.dev/commands-axon/).