DUNE-EXEC(1) Dune Manual DUNE-EXEC(1) (NAME) dune-exec - (SYNOPSIS) dune exec [OPTION] PROG [ARGS] (DESCRIPTION) dune exec -- COMMAND : $ dune install $ COMMAND dune exec ocaml ( #require) . / ( ) . / ( ) (build context) + ( --root ) . (OPTIONS) --action-stderr-on-success=VAL --action-stdout-on-success . (monorepo) --action-stdout-on-success=swallow --action-stderr-on-success=must-be-empty . <<>> . --action-stdout-on-success=VAL . : print Dune swallow must-be-empty . must-be-empty Dune . print . --build-info . --context=CONTEXT ( =default) (build context). --display-separate-messages . --error-reporting=VAL ( =deterministic) . early . deterministic . twice : . -f, --force (alias) . --file-watcher=VAL ( =automatic) . Automatic dune . Manual dune . --no-build . --passive-watch-mode [--watch] RPC . --sandbox=VAL ( DUNE_SANDBOX) ( ). . : none symlink copy hardlink. --stop-on-first-error . -w, --watch . --wait-for-filesystem-clock Dune (digest) . . Dune . Dune . Dune . (COMMON OPTIONS) . --always-show-command-line dune . --auto-promote . dune promote . --build-dir=FILE ( DUNE_BUILD_DIR) . _build . --cache=VAL ( DUNE_CACHE) Dune ( disabled enabled-except-user-rules enabled). `enabled-except-user-rules` . --cache-check-probability=VAL ( DUNE_CACHE_CHECK_PROBABILITY) Dune. : . . --cache-storage-mode=VAL ( DUNE_CACHE_STORAGE_MODE) Dune ( auto hardlink copy). `hardlink` . --config-file=FILE . --debug-backtraces (backtrace) . --debug-dependency-path . --debug-package-logs ( DUNE_DEBUG_PACKAGE_LOGS) . --default-target=TARGET ( =@@default) dune build . --diff-command=VAL ( DUNE_DIFF_COMMAND) (diff) . - . --disable-promotion ( DUNE_DISABLE_PROMOTION) . --display=MODE Dune. dune-config(5) . : progress verbose short quiet tui. --dump-gc-stats=FILE . --help[=FMT] (=auto) FMT. FMT auto pager groff plain . auto TERM dumb pager plain . --ignore-promoted-rules (mode promote) (only ...). %{ignoring_promoted_rules} dune . --instrument-with=BACKENDS ( DUNE_INSTRUMENT_WITH) BACKENDS. BACKENDS backend . -j JOBS ( DUNE_JOBS) JOBS . JOBS auto ( ) . --no-buffer dune. dune . . --no-buffer . . -j 1 . --verbose . --no-config . --no-print-directory <>. --only-packages=PACKAGES PACKAGES . PACKAGES . dune . . .install . -p PACKAGES, --for-release-of-packages=PACKAGES () --release --pkg=disabled --only-packages PACKAGE. .opam . --pkg=VAL . (lock) . --profile=VAL ( DUNE_PROFILE) dev release. dev . --promote-install-files[=VAL] (=true) .install . --release dune release (). --root . --ignore-promoted-rules --no-config --profile release --always-show-command-line --promote-install-files --require-dune-project-file --default-target @install. . .opam -p -p . --require-dune-project-file[=VAL] (=true) dune-project . --root=DIR ( DUNE_ROOT) . . . --store-orig-source-dir ( DUNE_STORE_ORIG_SOURCE_DIR) dune-package. --target-exec=TOOLCHAIN=CMD ( DUNE_TARGET_EXEC) . : TOOLCHAIN=CMD ( 'windows=wine'). --terminal-persistence=MODE --watch. : preserve clear-on-rebuild clear-on-rebuild-and-flush-history. --trace-file=FILE catapult ( chrome://tracing). --verbose --display verbose. --version . --watch-exclusions=REGEX POSIX `dune build --watch` . --watch-exclusions . . --watch-exclusions . : ^_opam /_opam ^_esy /_esy ^\.#.* /\.#.* ~$ ^#[^#]*#$ /#[^#]*#$ ^4913$ /4913$ /.git /.hg :/windows --workspace=FILE ( DUNE_WORKSPACE) . -x VAL ( DUNE_CROSS_TARGET) . (MORE HELP) `dune COMMAND --help' . (EXIT STATUS) dune exec : 0 . 1 . 130 . (ENVIRONMENT) exec : DUNE_BUILD_DIR . _build . DUNE_CACHE Dune ( disabled enabled-except-user-rules enabled). `enabled-except-user-rules` . DUNE_CACHE_CHECK_PROBABILITY Dune. : . . DUNE_CACHE_STORAGE_MODE Dune ( auto hardlink copy). `hardlink` . DUNE_CROSS_TARGET . DUNE_DEBUG_PACKAGE_LOGS . DUNE_DIFF_COMMAND (diff) . - . DUNE_DISABLE_PROMOTION . DUNE_INSTRUMENT_WITH BACKENDS. BACKENDS backend . DUNE_JOBS JOBS . JOBS auto ( ) . DUNE_PROFILE . dev -p release . DUNE_ROOT . . . DUNE_SANDBOX . ( --sandbox ) DUNE_STORE_ORIG_SOURCE_DIR dune-package. DUNE_TARGET_EXEC . : TOOLCHAIN=CMD ( 'windows=wine'). DUNE_WORKSPACE . (BUGS) : https://github.com/ocaml/dune/issues (SEE ALSO) dune(1) (EXAMPLES) 1. `my_exec`: dune exec my_exec 2. `foo.ml` `arg`: dune exec -- ./foo.exe arg Dune 3.24.2 DUNE-EXEC(1)