Quickly create new ReScript apps from project templates:
npm create rescript-app@latest(note: @latest is important, otherwise npm may run an old version) or
yarn create rescript-appor
pnpm create rescript-app@latestor
bun create rescript-appYou can also skip the interactive prompts by passing a project name and template flag.
Supported templates are defined here.
With npm, pass the template flag after --:
npm create rescript-app@latest my-app -- --template viteWith Yarn, pnpm, and Bun, you can pass the template flag directly:
yarn create rescript-app my-app --template viteIf you have an existing JavaScript project containing a package.json, you can execute one of the above commands directly in your project's directory to add ReScript to your project.