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.