Ema apps have a basic CLI argument structure that you can invoke in two possible ways:

  • run subcommand (or, no subcommand specified): Run the dev server.
  • gen subcommand: Generate the static site, instead of starting up the dev server

The subcommand 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.

Links to this page
  • Tutorial

    On final note, you will note that nothing is actually generated so far. This is because Ema has been running in the dev server mode, which is quite useful during development. To actually generate the files, you can use the gen command when running the CLI:

  • Concepts