Skip to content
UPG is in early alpha. The specification is still evolving and may change between versions.

from @unified-product-graph/cli · Graph

upg export

Export entities as JSON, Markdown, or CSV.

Usage

upg export [options]

Options

--file <path>
Path to .upg file
--format <fmt>
json | md | csv (markdown is accepted as md). Defaults to json; an unknown value is a usage error (exit 3)
--type <type>
Filter by entity type

Examples

Export the graph as Markdown

upg export --format md

Output

## feature (3)

- **Guest checkout**: Buy without creating an account
- **One-click reorder**: Re-purchase a previous order in one tap
- **Saved payment methods**

## opportunity (1)

- **Reduce cart abandonment**: Fewer drop-offs at the payment step

## persona (1)

- **Returning shopper**

Export features as CSV

upg export --format csv --type feature

Related

upg importupg listupg init