CLI Reference
Global Options
| Option | Description |
|---|---|
--db PATH |
Database path (default: .jnkn/jnkn.db) |
--config PATH |
Config file (default: .jnkn/config.yaml) |
--verbose |
Enable verbose output |
--quiet |
Suppress non-error output |
--version |
Show version |
--help |
Show help |
Commands
jnkn init
Initialize Jnkn in the current directory.
| Option | Description |
|---|---|
--force |
Overwrite existing configuration |
Creates:
- .jnkn/config.yaml
- .jnkn/suppressions.yaml
- .jnknignore
jnkn scan
Parse codebase and build dependency graph.
| Option | Default | Description |
|---|---|---|
--dir PATH |
. |
Directory to scan |
--full |
false |
Force full rescan |
--jobs N |
1 |
Parallel workers |
--files FILE... |
Scan specific files only |
Examples:
jnkn blast-radius
Calculate downstream impact.
| Option | Default | Description |
|---|---|---|
--max-depth N |
-1 |
Max traversal depth (-1 = unlimited) |
--type TYPE |
Filter by artifact type | |
--format FMT |
json |
Output format: json, markdown, plain, sarif |
Examples:
jnkn explain
Explain why a match was made (or not made).
| Option | Description |
|---|---|
--why-not |
Explain why match was rejected |
--alternatives |
Show other candidates considered |
Examples:
jnkn suppress
Manage suppressions.
suppress add
| Option | Description |
|---|---|
--reason TEXT |
Reason for suppression |
--expires DATE |
Expiration date (ISO format) |
suppress list
| Option | Description |
|---|---|
--format FMT |
Output format: table, json, yaml |
suppress remove
suppress test
jnkn stats
Show graph statistics.
| Option | Description |
|---|---|
--nodes |
Show all nodes |
--edges |
Show all edges |
--format FMT |
Output format: table, json |
jnkn diff
Compare dependency graphs between git refs.
| Option | Description |
|---|---|
--show WHAT |
Show: all, added, removed |
--type TYPE |
Filter by artifact type |
--format FMT |
Output format: json, markdown |
Examples:
jnkn export
Export the dependency graph.
| Option | Default | Description |
|---|---|---|
--format FMT |
json |
Format: json, graphml, dot, csv |
--type TYPE |
Filter by artifact type |
jnkn clear
Clear all data.
| Option | Description |
|---|---|
--force |
Skip confirmation |
Environment Variables
| Variable | Description |
|---|---|
JUNKAN_DB |
Database path |
JUNKAN_CONFIG |
Config file path |
JUNKAN_MIN_CONFIDENCE |
Override confidence threshold |
JUNKAN_LOG_LEVEL |
Logging level: DEBUG, INFO, WARNING, ERROR |
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Configuration error |
| 3 | Parse error |
| 10 | Impact threshold exceeded (CI mode) |