1dune-printenv(1) Dune Manual dune-printenv(1)
2
3
4
6 dune-printenv - Print the environment of a directory
7
9 dune printenv [OPTION]... [PATH]
10
12 dune printenv DIR prints the environment of a directory
13
15 --build-info
16 Show build information.
17
18 -f, --force
19 Force actions associated to aliases to be re-executed even if their
20 dependencies haven't changed.
21
22 --field=FIELD
23 Only print this field. This option can be repeated multiple times
24 to print multiple fields.
25
26 --help[=FMT] (default=auto)
27 Show this help in format FMT. The value FMT must be one of `auto',
28 `pager', `groff' or `plain'. With `auto', the format is `pager` or
29 `plain' whenever the TERM env var is `dumb' or undefined.
30
31 --sandbox=VAL (absent DUNE_SANDBOX env)
32 Sandboxing mode to use by default. Some actions require a certain
33 sandboxing mode, so they will ignore this setting. The allowed
34 values are: none, symlink, copy.
35
36 --version
37 Show version information.
38
39 -w, --watch
40 Instead of terminating build after completion, wait continuously
41 for file changes.
42
44 These options are common to all commands.
45
46 --always-show-command-line
47 Always show the full command lines of programs executed by dune
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 --cache=VAL (absent DUNE_CACHE env)
57 Activate binary cache (either `disabled' or `enabled'). Default is
58 `disabled'.
59
60 --cache-check-probability=VAL (absent=0. or
61 DUNE_CACHE_CHECK_PROBABILITY env)
62 Probability cached rules are rerun to check for reproducibility
63
64 --cache-duplication=VAL (absent DUNE_CACHE_DUPLICATION env)
65 Binary cache duplication mode
66
67 --cache-transport=VAL (absent DUNE_CACHE_TRANSPORT env)
68 Binary cache protocol
69
70 --config-file=FILE
71 Load this configuration file instead of the default one.
72
73 --debug-artifact-substitution
74 Print debugging info about artifact substitution
75
76 --debug-backtraces
77 Always print exception backtraces.
78
79 --debug-dependency-path
80 In case of error, print the dependency path from the targets on the
81 command line to the rule that failed.
82
83 --debug-findlib
84 Debug the findlib sub-system.
85
86 --default-target=TARGET (absent=@@default)
87 Set the default target that when none is specified to dune build.
88
89 --diff-command=VAL
90 Shell command to use to diff files. Use - to disable printing the
91 diff.
92
93 --disable-promotion (absent DUNE_DISABLE_PROMOTION env)
94 Disable all promotion rules
95
96 --display=MODE
97 Control the display mode of Dune. See dune-config(5) for more
98 details.
99
100 --ignore-promoted-rules
101 Ignore rules with (mode promote), except ones with (only ...). The
102 variable %{ignoring_promoted_rules} in dune files reflects whether
103 this option was passed or not.
104
105 --instrument-with=BACKENDS (absent DUNE_INSTRUMENT_WITH env)
106 "Enable instrumentation by BACKENDS. BACKENDS is a comma-separated
107 list of library names, each one of which must declare an
108 instrumentation backend.
109
110 -j JOBS
111 Run no more than JOBS commands simultaneously.
112
113 --no-buffer
114 Do not buffer the output of commands executed by dune. By default
115 dune buffers the output of subcommands, in order to prevent
116 interleaving when multiple commands are executed in parallel.
117 However, this can be an issue when debugging long running tests.
118 With --no-buffer, commands have direct access to the terminal. Note
119 that as a result their output won't be captured in the log file.
120 You should use this option in conjunction with -j 1, to avoid
121 interleaving. Additionally you should use --verbose as well, to
122 make sure that commands are printed before they are being executed.
123
124 --no-config
125 Do not load the configuration file
126
127 --no-print-directory
128 Suppress "Entering directory" messages
129
130 --only-packages=PACKAGES
131 Ignore stanzas referring to a package that is not in PACKAGES.
132 PACKAGES is a comma-separated list of package names. Note that this
133 has the same effect as deleting the relevant stanzas from dune
134 files. It is mostly meant for releases. During development, it is
135 likely that what you want instead is to build a particular
136 <package>.install target.
137
138 -p PACKAGES, --for-release-of-packages=PACKAGES
139 Shorthand for --release --only-packages PACKAGE. You must use this
140 option in your <package>.opam files, in order to build only what's
141 necessary when your project contains multiple packages as well as
142 getting reproducible builds.
143
144 --profile=VAL (absent DUNE_PROFILE env)
145 Select the build profile, for instance dev or release. The default
146 is dev.
147
148 --promote-install-files
149 Promote the generated <package>.install files to the source tree
150
151 --release
152 Put dune into a reproducible release mode. This is in fact a
153 shorthand for --root . --ignore-promoted-rules --no-config
154 --profile release --always-show-command-line
155 --promote-install-files --default-target @install. You should use
156 this option for release builds. For instance, you must use this
157 option in your <package>.opam files. Except if you already use -p,
158 as -p implies this option.
159
160 --root=DIR
161 Use this directory as workspace root instead of guessing it. Note
162 that this option doesn't change the interpretation of targets given
163 on the command line. It is only intended for scripts.
164
165 --store-orig-source-dir (absent DUNE_STORE_ORIG_SOURCE_DIR env)
166 Store original source location in dune-package metadata
167
168 --terminal-persistence=MODE
169 Changes how the log of build results are displayed to the console
170 between rebuilds while in --watch mode.
171
172 --trace-file=FILE
173 Output trace data in catapult format (compatible with
174 chrome://tracing)
175
176 --verbose
177 Same as --display verbose
178
179 --workspace=FILE (absent DUNE_WORKSPACE env)
180 Use this specific workspace file instead of looking it up.
181
182 -x VAL
183 Cross-compile using this toolchain.
184
186 Use `dune COMMAND --help' for help on a single command.
187
189 These environment variables affect the execution of printenv:
190
191 DUNE_BUILD_DIR
192 Specified build directory. _build if unspecified
193
194 DUNE_CACHE
195 Activate binary cache (either `disabled' or `enabled'). Default is
196 `disabled'.
197
198 DUNE_CACHE_CHECK_PROBABILITY
199 Probability cached rules are rerun to check for reproducibility
200
201 DUNE_CACHE_DUPLICATION
202 Binary cache duplication mode
203
204 DUNE_CACHE_TRANSPORT
205 Binary cache protocol
206
207 DUNE_DISABLE_PROMOTION
208 Disable all promotion rules
209
210 DUNE_INSTRUMENT_WITH
211 "Enable instrumentation by BACKENDS. BACKENDS is a comma-separated
212 list of library names, each one of which must declare an
213 instrumentation backend.
214
215 DUNE_PROFILE
216 Build profile. dev if unspecified or release if -p is set.
217
218 DUNE_SANDBOX
219 Sandboxing mode to use by default. (see --sandbox)
220
221 DUNE_STORE_ORIG_SOURCE_DIR
222 Store original source location in dune-package metadata
223
224 DUNE_WORKSPACE
225 Use this specific workspace file instead of looking it up.
226
228 Check bug reports at https://github.com/ocaml/dune/issues
229
230
231
232Dune n/a dune-printenv(1)