Ema apps have a basic CLI argument structure that you can invoke in two possible ways:
- No subcommand specified: Run the dev server.
gensubcommand: Generate the static site, instead of starting up the dev server
The “gen” subcommand (if used), is passed as the
Ema.CLI.Action type to your
render function. You can also use
runEmaWith if you are manually handling the CLI arguments yourself.