Files
shinyobjectz 2881f190bb Docs: a page for every CLI verb and every SDK import path on raea.io/docs
The CLI reference is now 43 pages, one a verb, each with its forms, where it runs and what each of its 164 flags does,
under docs/manual/reference/cli. The forms and flags are generated from `raea help --json`; the prose and the flag
descriptions are written by hand, kept by the generator, and checked: a new flag without a description fails.

The SDK reference is 28 pages, one an import path, under docs/manual/reference/sdk: every export with its doc, its
signature, a component's props, a class's members, its Bevy type and the parity ports and examples that use it,
generated by the TypeScript compiler, with a hand-written introduction and a type-checked example on each page.
Where the SDK mirrors a Bevy type without a comment of its own, Bevy's own doc is shown, marked as Bevy's
(tools/manual-ref/bevy-docs.json). Doc comments added to the SDK exports that had none.

tools/manual-ref.sh gen|check runs both generators.
2026-11-08 19:43:15 -08:00

2.6 KiB

title, summary, order, sources
title summary order sources
raea gen Generate images, video, music, sound, speech, 3D models and text through made.app, fal, Replicate, OpenRouter, Modal or ComfyUI. 102
io/gen/src
io/gen-comfy/src

raea gen makes generated media through the services you've connected: made.app, fal, Replicate, OpenRouter, Modal or a ComfyUI server. One prompt makes one file; a flow (FLOW.ts or FLOW.json) chains steps, and plan says what a flow will cost before run spends anything. --max-cents caps what a call may spend. A generated 3D model is checked and fitted: its real height, its origin at the bottom centre. ComfyUI workflows go both ways: import one as a flow, export a flow as one, or run a workflow as it is.

raea gen models --kind image
raea gen image "a ceramic mug on a sunlit table, product photo" --aspect 4:5 -o media/
raea gen mesh "a mid-century armchair" --h 0.8
raea gen check chair.glb --h 0.8 --solid -o chair-fixed.glb
raea gen plan flow.ts && raea gen run flow.ts --max-cents 200
raea gen comfy import workflow.json -o flow.json
raea gen balance

Usage

raea gen models [--kind image|video|audio] [--query WORDS] | balance | types [-o FILE] | flow FLOW.ts [-o FLOW.json]
raea gen image|video|music|sfx|speech|mesh|text "PROMPT" [--model M] [--image FILE]... [--seconds S] [--aspect W:H] [-o DIR] [--max-cents N] [--plan]   (mesh: --model tripo:H3.1|tripo:P2|fal:<endpoint>)
raea gen mesh "PROMPT" [--image FILE] [--h METRES] [--dims W,D,H] [--turn DEG]   (the model checked and fitted: its real height, origin at the bottom centre)
raea gen check MODEL.glb [--h METRES] [--dims W,D,H] [--turn DEG] [--faces N | --seen METRES] [--parts a,b] [--rig] [--solid] [-o FIXED.glb] [--json]
raea gen plan FLOW.json|FLOW.ts [--exact] | raea gen run FLOW.json|FLOW.ts [-o DIR] [--max-cents N] [--exact] [--comfy-on-replicate] [--no-local] [--no-tripo]
raea gen comfy import WORKFLOW.json [-o FLOW.json] | comfy export FLOW.json|FLOW.ts [-o WORKFLOW.json] | comfy needs WORKFLOW.json [-o NEEDS.json]
raea gen comfy run WORKFLOW.json [-o DIR]   (any workflow as it is, on the ComfyUI server: its input files uploaded, every output fetched)
raea gen comfy view WORKFLOW.json [-o FILE] | comfy set WORKFLOW.json CHANGES.json   (nodes, settings by name, links, groups; edits written back)
raea gen comfy schema [URL] | comfy coverage DIR | comfy up

Headless: it needs nothing running and opens no window. Its arguments go to a parser of its own, whose forms are listed above.