DUNE-CACHE(1) Dune Manual DUNE-CACHE(1)

# [NAME](#NAME)

dune-cache - Manage Dune's shared cache of build artifacts.

# [SYNOPSIS](#SYNOPSIS)

**dune cache** *COMMAND* …

# [DESCRIPTION](#DESCRIPTION)

Dune can share build artifacts between workspaces. We currently only support a few subcommands; however, we plan to provide more functionality soon.

# [COMMANDS](#COMMANDS)

[**clear** \[*OPTION*\]…](#clear)

Clear the Dune cache.

[**size** \[**--machine-readable**\] \[*OPTION*\]…](#size)

Query the size of the Dune cache.

[**trim** \[**--size**=*BYTES*\] \[**--trimmed-size**=*BYTES*\] \[*OPTION*\]…](#trim)

Trim the Dune cache.

# [COMMON OPTIONS](#COMMON_OPTIONS)

**--help**\[=*FMT*] (default=**auto**)

Show this help in format *FMT*. The value *FMT* must 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.

**--version**

Show version information.

# [EXIT STATUS](#EXIT_STATUS)

**dune cache** exits with:

0

on success.

1

if an error happened.

130

if it was interrupted by a signal.

# [SEE ALSO](#SEE_ALSO)

[dune(1)](/man/os/ocaml-dune/dune.1)

Dune 3.24.2

---

Document: dune-cache(1) from ocaml-dune 3.24.2-r3 (Chainguard OS)
Source: https://github.com/ocaml/dune
