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 with 0 if package management is enabled, and 1 otherwise. 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 a PACKAGE, 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 of auto, pager, groff or plain. with auto, the format is pager or plain whenever the TERM env var is dumb or 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