from @unified-product-graph/cli · Graph
upg workspace
Workspace actions: list (default), switch <name>, rekind --kind <kind> <file...>.
Usage
upg workspace [action] [items...]Arguments
[action]- list (default), switch, or rekind
[items...]- Product name for switch, or one or more .upg files for rekind
Options
--kind <kind>- For rekind: product | org_rollup | watched | operating_function
--json- Machine-readable JSON output (rekind)
Examples
List products in the workspace
upg workspaceOutput
Workspace: 2 product(s) Checkout Redesign checkout-redesign.upg (active) Mobile Companion mobile-companion.upg
Switch the active product
upg workspace switch mobile-companionBulk-set member_kind on graphs (to create a new product, use `upg init --workspace`)
upg workspace rekind --kind watched .upg/competitor-*.upg