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 (required)
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[=VAL] (default=true)
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. Supported modes: preserve,
171 clear-on-rebuild.
172
173 --trace-file=FILE
174 Output trace data in catapult format (compatible with
175 chrome://tracing)
176
177 --verbose
178 Same as --display verbose
179
180 --workspace=FILE (absent DUNE_WORKSPACE env)
181 Use this specific workspace file instead of looking it up.
182
183 -x VAL
184 Cross-compile using this toolchain.
185
187 Use `dune COMMAND --help' for help on a single command.
188
190 These environment variables affect the execution of printenv:
191
192 DUNE_BUILD_DIR
193 Specified build directory. _build if unspecified
194
195 DUNE_CACHE
196 Activate binary cache (either `disabled' or `enabled'). Default is
197 `disabled'.
198
199 DUNE_CACHE_CHECK_PROBABILITY
200 Probability cached rules are rerun to check for reproducibility
201
202 DUNE_CACHE_DUPLICATION
203 Binary cache duplication mode
204
205 DUNE_CACHE_TRANSPORT
206 Binary cache protocol
207
208 DUNE_DISABLE_PROMOTION
209 Disable all promotion rules
210
211 DUNE_INSTRUMENT_WITH
212 "Enable instrumentation by BACKENDS. BACKENDS is a comma-separated
213 list of library names, each one of which must declare an
214 instrumentation backend.
215
216 DUNE_PROFILE
217 Build profile. dev if unspecified or release if -p is set.
218
219 DUNE_SANDBOX
220 Sandboxing mode to use by default. (see --sandbox)
221
222 DUNE_STORE_ORIG_SOURCE_DIR
223 Store original source location in dune-package metadata
224
225 DUNE_WORKSPACE
226 Use this specific workspace file instead of looking it up.
227
229 Check bug reports at https://github.com/ocaml/dune/issues
230
231
232
233Dune n/a DUNE-PRINTENV(1)