1dune-cache(1)                     Dune Manual                    dune-cache(1)
2
3
4

NAME

6       dune-cache - Manage the shared artifacts cache
7

SYNOPSIS

9       dune cache [OPTION]... [ACTION]
10

DESCRIPTION

12       Dune is able to share build artifacts between workspaces. dune
13       cache-daemon is a daemon that runs in the background and manages this
14       shared cache. For instance, it makes sure that it does not grow too big
15       and try to maximise sharing between the various workspaces that are
16       using the shared cache.
17
18       The daemon is automatically started by Dune when the shared cache is
19       enabled. You do not need to run this command manually.
20

ACTIONS

22       start starts the daemon if not already running.
23
24       stop stops the daemon.
25
26       trim removes oldest files from the cache to free space.
27

ARGUMENTS

29       ACTION
30           The cache-daemon action to perform (one of `start', `stop' or
31           `trim')
32

OPTIONS

34       --exit-no-client (absent DUNE_CACHE_EXIT_NO_CLIENT env)
35           Whether to exit once all clients have disconnected
36
37       -f, --foreground
38           Whether to start in the foreground or as a daemon
39
40       --help[=FMT] (default=auto)
41           Show this help in format FMT. The value FMT must be one of `auto',
42           `pager', `groff' or `plain'. With `auto', the format is `pager` or
43           `plain' whenever the TERM env var is `dumb' or undefined.
44
45       --port-file=PATH
46       (absent=/builddir/.cache/dune/db/runtime/dune-cache-daemon/port)
47           The file to read/write the daemon port from/to.
48
49       --root=PATH (absent=/builddir/.cache/dune/db)
50           Root of the dune cache
51
52       --size=BYTES
53           size to trim the cache to
54
55       --trimmed-size=BYTES
56           size to trim from the cache
57
58       --version
59           Show version information.
60

COMMON OPTIONS

62       These options are common to all commands.
63
64       --config-file=FILE
65           Load this configuration file instead of the default one.
66
67       --display=MODE
68           Control the display mode of Dune. See dune-config(5) for more
69           details.
70
71       --no-config
72           Do not load the configuration file
73
74       --verbose
75           Same as --display verbose
76

MORE HELP

78       Use `dune COMMAND --help' for help on a single command.
79

ENVIRONMENT

81       These environment variables affect the execution of cache:
82
83       DUNE_CACHE_EXIT_NO_CLIENT
84           Whether to exit once all clients have disconnected
85

BUGS

87       Check bug reports at https://github.com/ocaml/dune/issues
88
89
90
91Dune n/a                                                         dune-cache(1)
Impressum