CLI · Reference
Command reference
23 commands. Run any of them with upg <command> --help for the same options shown here.
Read
Inspect and score the graph. Safe, read-only.
Score the graph 0–100. Gate CI with --min-score.
upg verifyStructural validation. Exits 1 on violations for CI gates.
upg diffCompare the current .upg against a git ref. For PR reviews.
upg listQuery entities from the graph.
upg treeTree view of the graph. Filter by entity type or domain.
upg searchFuzzy text search across titles and descriptions.
Create & edit
Mutate the graph: nodes, edges, and gap-driven scaffolding.
Create an entity. Type is validated against the spec.
upg updateUpdate an entity. Unspecified fields are preserved.
upg deleteDelete an entity and its edges. Omit ID for an interactive picker.
upg connectCreate an edge between 2 nodes. Type is auto-inferred.
upg gapsReport empty domains, broken chains, and sparse areas.
Graph
Create, scope, and move whole graphs in and out of the .upg format.
Cloud
Authenticate and sync graphs with the hosted cloud.
Setup
Wire the CLI and MCP server into your environment.