1
1
mirror of https://github.com/srid/ema.git synced 2024-11-27 01:23:29 +03:00
ema/docs/concepts/cli.md
Sridhar Ratnakumar ae113f5246 Remove -C option
2021-06-28 11:05:48 -04:00

431 B

order
4

CLI

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

  1. No subcommand specified: Run the dev server.
  2. gen subcommand: 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.