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

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

upg batch

Atomic batch operations: create, update, or delete many entities in one call.

Usage

upg batch <create|update|delete> [options]

Arguments

<subcommand>
create, update, or delete

Options

--file <path>
Path to .upg file
--data <json>
create/update: JSON array (or { nodes, edges })
--ids <list>
delete: comma-separated ids
--dry-run
create: validate without writing
--json
Machine-readable JSON output

Examples

Create many entities atomically

upg batch create --data '[{"type":"need","title":"X"}]'

Delete several entities at once

upg batch delete --ids n_a,n_b -y

Related

upg createupg import