Ema apps have a basic CLI argument structure that takes two kinds of input:
-C <dir>: specifies the “input directory” (current working directory by default)
gensubcommand: generates the static site, instead of starting up the dev server
runEma) will change the current working directory to the “input directory” before running your application code. It, along with 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.