mirror of
https://github.com/srid/ema.git
synced 2024-11-27 01:23:29 +03:00
431 B
431 B
order |
---|
4 |
CLI
Ema apps have a basic CLI argument structure that you can invoke in two possible ways:
- No subcommand specified: Run the dev server.
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.