Phoenix Generators Flags

Hey guys.

Is there a way to choose what will be generated by mix phx.gen.json?

I just want to generate the context, tests and migrations. I don’t want controllers and views

1 Like

Hello and welcome,

If You don’t want controllers and views, You might use…

mix phx.gen.context
1 Like

Exactly this, thank you @kokolegorille