mix ash_form.gen.live
(AshFormBuilder v0.4.0)
View Source
Scaffolds a complete CRUD LiveView interface for an Ash resource.
Usage
$ mix ash_form.gen.live -r MyApp.Accounts.User
$ mix ash_form.gen.live --resource MyApp.Blog.Post --accent teal --transitions smooth
$ mix ash_form.gen.live -r MyApp.Inventory.Product --page-size 50
$ mix ash_form.gen.live -r MyApp.Accounts.User --out lib/my_app_web/live/admin
Required option
--resource/-r— Fully-qualified resource module (e.g.MyApp.Accounts.User).
Optional flags
--out/-o— Override output directory. Default:lib/<otp_app>_web/live/<snake_resource>_live--page-size/-p— Cinder page size. Default:25--theme/-t— Theme atom or module passed to the form component (:shadcn,:default,:glassmorphism,:mishka, or a user-registered atom). Defaults to whatever the resource's form DSL declares.--accent— Accent color atom (e.g.teal,indigo,rose). Overrides the form's DSL default.--transitions—none,subtle, orsmooth.--web-module— Override the<App>Webmodule name (rare).
Generated files
index.ex— Phoenix LiveView with mount, handle_params, handle_info, and handle_event for create / edit / delete. URL state managed byCinder.UrlSync.index.html.heex— Cinder.collection table +<.modal>withAshFormBuilder.FormComponentfor create/edit. Honors per-formtheme/accent/transitionsfrom the resource's DSL, with optional flag-based overrides.