Skip to content

create-glion

Scaffold a new Glion app from an example in the rethinkhealth/glion repository.

Scaffold a new Glion app from an example in rethinkhealth/glion.

Usage

# Default: prompts for a directory only, then scaffolds the `starter` template.
pnpm create glion
npm create glion
yarn create glion
bun create glion

# Skip every prompt — directory and starter template are both fixed.
pnpm create glion my-app

# Pick a non-default template up front.
pnpm create glion my-app --example mllp-server

# Open the interactive template picker (pass --example with no value).
pnpm create glion my-app --example

Options

FlagDescription
[dir] (positional)Target directory. Prompts when omitted; defaults to ./my-glion-app.
-e, --example [<name>]Example to clone from examples/. Pass a name to use it directly, or pass the flag with no value to open the interactive picker. Omit to use starter.
-h, --helpPrint usage and exit.

Examples

NameDescription
starterStarter Glion — minimal HL7v2 MLLP server. The default scaffold.
mllp-serverHL7v2 MLLP server with route handlers (Node.js).
mllp-server-bunHL7v2 MLLP server with route handlers (Bun).
mllp-clientMLLP client sending sample messages — companion to the server.

Each example is fetched from github:rethinkhealth/glion/examples/<name> via giget.

License

MIT © Glion contributors