DUNE-PACKAGE(1)
π dune-package π β the manual, but make it make sense
okay bestie, so this is dune-package, straight out of the Dune Manual. She's the Experimental package management girlie. π
β¨ NAME β¨
dune-package β Experimental package management. yes, the "experimental" is doing a lot of work there, we love her anyway π
πΈ SYNOPSIS πΈ
dune package COMMAND β¦
π¦ DESCRIPTION π¦
It's giving commands for OCaml package management. that's the whole vibe. you pick a COMMAND, she does the thing π«Ά
π COMMANDS π
enabled [OPTION]β¦β checks whether the project is like "yeah, we're doing dune's package management features". exits with0if package management is enabled, and1otherwise. so the exit code is the answer, no cap πlock [OPTION]β¦ [LOCKDIRS]β¦β makes a lockfile. that's it, that's the job β¨outdated [OPTION]β¦ [LOCKDIRS]β¦β checks for outdated packages. the vibe check for your deps π§print-digest [OPTION]β¦ PACKAGEβ prints the digest of a package in the project's lockdir. give her aPACKAGE, get a digest πprint-solver-env [OPTION]β¦ [LOCKDIRS]β¦β prints a description of the environment that would be used to solve dependencies, and then exits without even attempting to solve the dependencies or generate the lockfile. it's literally made for debugging those situations where no solution can be found for a project's dependencies. no thoughts, just β¨ introspection β¨search [OPTION]β¦ [QUERY]β searches for packages through repositories in the workspace. go find your faves πvalidate-lockdir [OPTION]β¦ [LOCKDIRS]β¦β validates that a lockdir contains a solution for local packages. making sure the lockdir isn't lying to you π
π COMMON OPTIONS π
these ones are common to all the commands. like, every single one. periodt.
--help[=FMT](default=auto) β shows this help in format FMT. the value of FMT has to be one ofauto,pager,grofforplain. withauto, the format ispagerorplainwhenever theTERMenv var isdumbor undefined. so like, shy terminal = plain text, that's the energy π--versionβ shows version information. the "who even am i" button πΈ
π MORE HELP π
for help on one single command, you do:
`dune COMMAND --help'
(yes the quoting in there is a little chaotic, but she's iconic and we don't fix her π)
β EXIT STATUS β
dune package bounces out with:
0β on success. slay π1β if an error happened. it's giving rough π130β if it was interrupted by a signal. Ctrl+C walked in and said "not today" π
π BUGS π
check bug reports at https://github.com/ocaml/dune/issues
π SEE ALSO π
okay that's the whole page bestie, you ate that π«Ά this one's Dune 3.24.1, brought to you by the Dune Manual, and it's a DUNE-PACKAGE(1) moment. go lock some packages, mwah πβ¨
π¦ where this page comes from
- ubuntu stonking: ocaml-dune 3.24.1-4 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms