from @unified-product-graph/cli · Graph
upg init
Create a .upg file. Interactive by default.
Usage
upg init [options]Options
--title <title>- Product title. Skips prompt
--template <template>- blank | saas | marketplace | mobile | oss. Skips prompt
--workspace- Create in .upg/<name>.upg with workspace.json. Skips prompt
--single- Create product.upg in the current directory. Skips prompt
--file <path>- Explicit output path (overrides single/workspace; also honours $UPG_FILE)
--force- Overwrite the existing file
--yes- Non-interactive: defaults for anything not set by a flag (template = blank, mode = single)
Examples
Interactive setup
upg initOutput
? What's your product called? Checkout Redesign
? Start from a template? saas
? Single product or multi-product workspace? single
✓ Created product.upg
3 seed nodes · template: saas
Next steps:
upg install-skills Install UPG skills into Claude Code
upg mcp setup Wire the MCP server (one-time)
upg health Check your graph
Then open Claude Code and type /upg to get started.Non-interactive SaaS scaffold
upg init --title "MealMaster" --template saasCreate a multi-product workspace
upg init --workspace --title "MealMaster"Fully non-interactive (CI / scripts)
upg init --title "MealMaster" --template blank --yes