You can use mix phx.gen.live
mix phx.gen.live
See here: The "—live" option (phoenix 1.6.0.rc) does not seem to work properly - #2 by mcrumm