1
1
mirror of https://github.com/srid/ema.git synced 2024-12-02 09:15:10 +03:00
ema/docs/concepts/cli.md
2021-05-18 22:29:04 -04:00

700 B

order
4

CLI

Ema apps have a basic CLI argument structure that takes two kinds of input:

  1. -C <dir>: specifies the "input directory" (current working directory by default)
  2. gen subcommand: generates the static site, instead of starting up the dev server

Ema (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.