rent
ReferenceCommand line

rent dev

Use rent dev during active schema work. It validates and generates once, then watches every .rsl file in the configured schema path and atomically regenerates after changes.

rent dev
Generated rent/generated
Watching rent/schema.rsl
Regenerated rent/generated

Invalid intermediate edits do not replace the last valid generated client and do not stop the watcher:

Generation failed: rent/schema.rsl:18:21 [RSL205] @relation fields and references must have equal lengths
Regenerated rent/generated

Fix and save the schema to resume normal generation. Stop the watcher with Ctrl-C.

rent dev watches code generation only. Run the application and its tests in separate terminals so process restarts remain under your application's control.

Custom project layout

Paths normally come from rent.toml. Override them for a one-off workspace command:

rent dev --schema crates/domain/rent/schema --target crates/domain/src/generated

For a single generation in automation, use rent generate.

On this page