Skip to main content
Commands

vg export

Export the code map in various formats: JSON, GraphML, Graphviz DOT, Neo4j Cypher, Markdown, HTML, CycloneDX SBOM, or SPDX.

Overview

vg export writes the code map to a file in the format inferred from the extension. Use - for stdout.


Usage

vg export [file]
ExtensionFormat
.jsonJSON
.ndjsonNewline-delimited JSON
.graphmlGraphML
.dotGraphviz DOT
.cypherNeo4j Cypher
.mdMarkdown
.htmlHTML visualization
.cdx.jsonCycloneDX SBOM / AI-BOM
.spdx.jsonSPDX

Examples

# Export as JSON
vg export map.json

# Export as DOT for Graphviz
vg export map.dot

# Export CycloneDX AI-BOM
vg export ai-bom.cdx.json

# Stream JSON to stdout
vg export -

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 export map.json

Related Documentation