Forrest logo
tool overview
On this page you find all important commands for the CLI tool dune. If the command you are looking for is missing please ask our AI.


Dune is a command-line tool primarily used for building OCaml projects. It is a modern and user-friendly build system that simplifies the process of compiling, linking, and managing dependencies for OCaml projects.

Here are some key features and characteristics of Dune:

  1. Simplicity: Dune provides a simple and declarative way to define build rules for OCaml projects using a human-friendly build language. It abstracts away complex build configurations and reduces the manual effort required for managing project builds.

  2. Dependency Management: Dune automatically handles dependency resolution by analyzing the project's source code and generating dependency graphs. It ensures that dependencies are built and linked correctly, making it easier to manage and track project dependencies.

  3. Incremental Builds: Dune supports incremental builds, meaning it only rebuilds the necessary parts of the project when changes are made, resulting in faster build times and improved developer productivity.

  4. Multi-package Projects: Dune can handle multiple packages within a single project, allowing developers to manage complex projects with ease. This is particularly useful for large OCaml projects that consist of multiple libraries or executables.

  5. Cross-platform Support: Dune is designed to work across different platforms, including Windows, macOS, and Linux. It ensures consistent behavior and build results across different operating systems, making it suitable for projects that need to be developed and deployed in heterogeneous environments.

  6. Compatibility: Dune is compatible with various OCaml build systems and workflows like OCamlbuild, Oasis, and Jbuilder. It supports migration from these legacy systems, allowing developers to modernize their existing projects without starting from scratch.

Overall, Dune simplifies the OCaml build process, providing a robust and efficient build system for OCaml projects of any scale.

List of commands for dune:

tool overview