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

NAME

6       dune-install - Install packages.
7

SYNOPSIS

9       dune install [OPTION]... [PACKAGE]...
10

OPTIONS

12       --destdir=PATH (absent DESTDIR env)
13           When passed, this directory is prepended to all installed paths.
14
15       --dry-run
16           Only display the file operations that would be performed.
17
18       -f, --force
19           Force actions associated to aliases to be re-executed even if their
20           dependencies haven't changed.
21
22       --help[=FMT] (default=auto)
23           Show this help in format FMT. The value FMT must be one of `auto',
24           `pager', `groff' or `plain'. With `auto', the format is `pager` or
25           `plain' whenever the TERM env var is `dumb' or undefined.
26
27       --libdir=PATH
28           Directory where library files are copied, relative to prefix or
29           absolute. If --prefix is specified the default is $prefix/lib,
30           otherwise it is the output of ocamlfind printconf destdir
31
32       --prefix=PREFIX
33           Directory where files are copied. For instance binaries are copied
34           into $prefix/bin, library files into $prefix/lib, etc... It
35           defaults to the current opam prefix if opam is available and
36           configured, otherwise it uses the same prefix as the ocaml
37           compiler.
38
39       --version
40           Show version information.
41
42       -w, --watch
43           Instead of terminating build after completion, wait continuously
44           for file changes.
45

COMMON OPTIONS

47       These options are common to all commands.
48
49       --auto-promote
50           Automatically promote files. This is similar to running dune
51           promote after the build.
52
53       --build-dir=FILE (absent DUNE_BUILD_DIR env)
54           Specified build directory. _build if unspecified
55
56       --config-file=FILE
57           Load this configuration file instead of the default one.
58
59       --debug-backtraces
60           Always print exception backtraces.
61
62       --debug-dependency-path
63           In case of error, print the dependency path from the targets on the
64           command line to the rule that failed.
65
66       --debug-findlib
67           Debug the findlib sub-system.
68
69       --default-target=TARGET
70           Set the default target that when none is specified to dune build.
71           It defaults to @@default.
72
73       --dev
74           Same as --profile dev
75
76       --diff-command=VAL
77           Shell command to use to diff files. Use - to disable printing the
78           diff.
79
80       --display=MODE
81           Control the display mode of Dune. See dune-config(5) for more
82           details.
83
84       --ignore-promoted-rules
85           Ignore rules with (mode promote)
86
87       -j JOBS
88           Run no more than JOBS commands simultaneously.
89
90       --no-buffer
91           Do not buffer the output of commands executed by dune. By default
92           dune buffers the output of subcommands, in order to prevent
93           interleaving when multiple commands are executed in parallel.
94           However, this can be an issue when debugging long running tests.
95           With --no-buffer, commands have direct access to the terminal. Note
96           that as a result their output won't be captured in the log file.
97           You should use this option in conjunction with -j 1, to avoid
98           interleaving. Additionally you should use --verbose as well, to
99           make sure that commands are printed before they are being executed.
100
101       --no-config
102           Do not load the configuration file
103
104       --no-print-directory
105           Suppress "Entering directory" messages
106
107       --only-packages=PACKAGES
108           Ignore stanzas referring to a package that is not in PACKAGES.
109           PACKAGES is a comma-separated list of package names. Note that this
110           has the same effect as deleting the relevant stanzas from jbuild
111           files. It is mostly meant for releases. During development, it is
112           likely that what you want instead is to build a particular
113           <package>.install target.
114
115       -p PACKAGES, --for-release-of-packages=PACKAGES
116           Shorthand for --root . --only-packages PACKAGE
117           --ignore-promoted-rules --no-config --profile release. You must use
118           this option in your <package>.opam files, in order to build only
119           what's necessary when your project contains multiple packages as
120           well as getting reproducible builds.
121
122       --profile=VAL (absent DUNE_PROFILE env)
123           Select the build profile, for instance dev or release. The default
124           is dev.
125
126       --root=DIR
127           Use this directory as workspace root instead of guessing it. Note
128           that this option doesn't change the interpretation of targets given
129           on the command line. It is only intended for scripts.
130
131       --store-orig-source-dir (absent DUNE_STORE_ORIG_SOURCE_DIR env)
132           Store original source location in dune-package metadata
133
134       --trace-file=FILE
135           Output trace data in catapult format (compatible with
136           chrome://tracing)
137
138       --verbose
139           Same as --display verbose
140
141       --workspace=FILE
142           Use this specific workspace file instead of looking it up.
143
144       -x VAL
145           Cross-compile using this toolchain.
146

MORE HELP

148       Use `dune COMMAND --help' for help on a single command.
149

ENVIRONMENT

151       These environment variables affect the execution of install:
152
153       DESTDIR
154           See option --destdir.
155
156       DUNE_BUILD_DIR
157           Specified build directory. _build if unspecified
158
159       DUNE_PROFILE
160           Build profile. dev if unspecified or release if -p is set.
161
162       DUNE_STORE_ORIG_SOURCE_DIR
163           Store original source location in dune-package metadata
164

BUGS

166       Check bug reports at https://github.com/ocaml/dune/issues
167
168
169
170Dune 11VERSION11                                               dune-install(1)
Impressum