@unified-product-graph/cli · v0.7.3
The upg command line
Scaffold, inspect, edit, validate and sync product graphs straight from the terminal and gate CI on graph health. 23 commands, zero config, reads and writes the same .upg files as the SDK and MCP server.
Install
Or run it without installing: npx @unified-product-graph/cli <command>.
60-second quick start
# Scaffold a graph (interactive — or pass --title to script it)
upg init
# Score its health, 0–100
upg health
# Validate structure — exits non-zero on violations (great in CI)
upg verifyEvery command takes --help. Most reads support --json for scripting.
23 commands
Read · 6
Inspect and score the graph (read-only).
health · verify · diff · list · tree · search
Create & edit · 5
Add and change nodes and edges.
create · update · delete · connect · gaps
Graph · 4
Scaffold, scope, import and export graphs.
init · workspace · import · export
Cloud · 6
Authenticate and sync with the cloud.
login · logout · push · pull · products · log
Setup · 2
Wire the CLI + MCP server into your tools.
install-skills · mcp
Go deeper