Skip to content

from @unified-product-graph/cli · Create & edit

upg create

Create an entity. Type is validated against the spec.

Usage

upg create <type> <title> [options]

Arguments

<type>
Entity type, validated against the UPG spec
<title>
Title for the new entity

Options

--file <path>
Path to .upg file
--parent <id>
Parent node ID. Auto-creates an edge
--status <status>
Lifecycle status. Defaults to active
--data <json>
Type-specific fields as JSON
--tags <list>
Comma-separated tags

Examples

Create a standalone feature

upg create feature "Guest checkout"

Output

✓ Created feature "Guest checkout"  n_Kg19aubWwbwm7V5t

Create under a parent and wire the edge

upg create feature "Dark mode" --parent node_abc123

Create a tagged persona

upg create persona "Power user" --tags b2b,retention

Related

upg updateupg deleteupg connect