All-in-one generator. Produces:
Ecto schemas and a migration (as
mix caravela.gen.schema)A Phoenix context module (as
mix caravela.gen.context)JSON controllers and a router scope snippet (as
mix caravela.gen.api)mix caravela.gen MyApp.Domains.Library
Flags:
--dry-run— print the generated files without writing--output DIR— write underDIRinstead of the project root--force— overwrite existing files without prompting--no-scope— skip printing the router snippet
Regeneration preserves content below the # --- CUSTOM --- marker
in every file that has one (schemas, contexts, controllers).