Generate vs Emit
Generate vs Emit
Section titled “Generate vs Emit”Topogram uses two verbs for two different jobs.
Status: current Audience: developers and agents choosing command verbs Use when: you need to know whether to write app outputs or inspect contracts/reports.
Topogram uses two verbs for two different jobs.
Generate
Section titled “Generate”generate writes app or runtime output.
topogram generatetopogram generate ./topo --out ./apptopogram generate app ./topo --out ./appDefault input is ./topo. Default output is ./app.
Use this when you want generator packages to write web, API, database, or native runtime files.
emit prints or writes named artifacts.
topogram emit ui-widget-contract ./topo --jsontopogram emit widget-conformance-report ./topo --projection proj_web_surface --jsontopogram emit db-schema-snapshot ./topo --projection proj_db --jsontopogram emit sql-migration ./topo --projection proj_db --from-snapshot ./state/current.jsonemit prints to stdout by default. It writes files only with --write:
topogram emit ui-widget-contract ./topo --write --out-dir ./contractsUse this for contracts, reports, snapshots, migration plans, and agent packets.