Install OCaml
Install Bun
Create an opam switch for the project
opam switch create .
Build OCaml/Reason assets
dune build
Install JavaScr*pt assets
bun install
There are two options. You can run
bun build/src/cli.mjs
or you can link the project so it can be run as if installed globally
bun link
After every dune build
you'll need to change the file perms of the built entrypoint
chmod +x ./build/src/cli.mjs
Then you can call CMA as if it's globally installed
create-melange-app