1DUNE-CACHE(1) Dune Manual DUNE-CACHE(1)
2
3
4
6 dune-cache - Manage the shared cache of build artifacts
7
9 dune cache [--size=BYTES] [--trimmed-size=BYTES] [OPTION]… [ACTION]
10
12 Dune can share build artifacts between workspaces. Currently, the only
13 action supported by this command is `trim`, but we plan to provide more
14 functionality soon.
15
17 trim trim the shared cache to free space.
18
20 ACTION
21 The cache action to perform (trim)
22
24 --size=BYTES
25 Size to trim the cache to.
26
27 --trimmed-size=BYTES
28 Size to trim from the cache.
29
31 Trimming the Dune cache to 1 GB.
32
33 $ dune cache trim --trimmed-size=1GB
34
35 Trimming 500 MB from the Dune cache.
36
37 $ dune cache trim --size=500MB
38
40 These options are common to all commands.
41
42 --help[=FMT] (default=auto)
43 Show this help in format FMT. The value FMT must be one of auto,
44 pager, groff or plain. With auto, the format is pager or plain
45 whenever the TERM env var is dumb or undefined.
46
47 --version
48 Show version information.
49
51 Use `dune COMMAND --help' for help on a single command.
52
54 cache exits with the following status:
55
56 0 on success.
57
58 123 on indiscriminate errors reported on standard error.
59
60 124 on command line parsing errors.
61
62 125 on unexpected internal errors (bugs).
63
65 Check bug reports at https://github.com/ocaml/dune/issues
66
68 dune(1)
69
70
71
72Dune n/a DUNE-CACHE(1)