DUNE-OCAML(1)

✨ NAME ✨

dune-ocaml β€” bestie, this is the command group that's all about OCaml πŸ’– (yes it's written OCaml, capital O capital C, we respect the brand here).


🌸 SYNOPSIS 🌸

dune ocaml COMMAND …

That's it. dune ocaml, then a command, then whatever that command wants. Let's gooo πŸ¦‹


πŸ‘‘ COMMANDS πŸ‘‘

okay so here's the whole squad, one by one, no skipping, I promise:

  • doc [OPTION]… β€” builds the documentation of an OCaml project and shows it to you. It's giving "build and view", both at once. ✨
  • dump-dot-merlin [OPTION]… [PATH] β€” prints your Merlin configuration. That's the whole job, and it does it flawlessly. πŸŽ€
  • merlin COMMAND … β€” a whole command group dedicated to merlin. Yes, merlin gets its own little universe. 🧚
  • ocaml-merlin [OPTION]… β€” spins up a merlin configuration server. Serving configs, main character energy. πŸ‘‘
  • top [OPTION]… [DIR] β€” prints a list of toplevel directives for including directories and loading cma files. Very practical, very iconic. πŸ”₯
  • top-module [OPTION]… MODULE β€” prints a list of toplevel directives for loading a module into the topevel. (Yes, the original says "topevel" β€” we keep it fr fr, typos and all, no cap πŸ’…)
  • utop [OPTION]… [DIR] [ARGS]… β€” loads a library in utop. Plug that library straight into the vibe. 🌈

πŸ’… COMMON OPTIONS πŸ’…

  • --help[=FMT] (default=auto) β€” shows you this help in format FMT. The value of FMT has to be one of auto, pager, groff or plain. And with auto, the format becomes pager or plain whenever the TERM env var is dumb or just… not set at all. πŸ™ˆ
  • --version β€” shows version information. Slay. ⭐

πŸ’€ EXIT STATUS πŸ’€

dune ocaml exits with:

  1. 0 β€” on success. We love a happy ending. 🫢
  2. 1 β€” if an error happened. 😭
  3. 130 β€” if it was interrupted by a signal. Absolute chaos, but we report it honestly.

πŸ¦‹ SEE ALSO πŸ¦‹

  • dune(1) β€” the parent, the blueprint, the blueprint-writing legend.

and that's the whole page bestie, thanks for reading to the end β€” this was Dune 3.24.1, from the Dune Manual, and yeah the page is literally titled DUNE-OCAML(1) in the corner. mwah πŸ’–

πŸ“¦ where this page comes from