DUB-RUN(1)
π DUB-RUN(1) β the dub run glow-up
okay bestie, welcome to dub-run, brought to you by The D Language Foundation β¨ this is the manual page for the default command, and yes it's giving main character energy.
π NAME
dub-run β builds and runs a package (this is the default command, iykyk)
π¦ SYNOPSIS
dub run [<package>[@<version-spec>]] OPTIONS... [-- <application arguments...>]
literally just drop your package in there and go, fr fr π
πΈ DESCRIPTION
Builds and runs a package. If you don't pass a package, it lowkey just uses the main package in the current working directory by default. iconic behavior honestly π«Ά
β¨ OPTIONS β¨
--temp-buildβ builds the project in the temp folder if possible. cozy little temp-home build π--rdmdβ usesrdmdinstead of directly invoking the compiler. different vibe, same energy.-f,--forceβ forces a recompilation even if the target is already up to date. no cap, it rebuilds anyway π₯-y,--yesβ automatic yes to prompts. assumes"yes"as the answer to all interactive prompts. she's agreeable like that π-n,--non-interactiveβ don't enter interactive mode. bye bestie, no questions today π--deepβ build all dependencies, even when the main target is a static library. deep dive, literally.--dest=VALUEβ base directory in which output artifacts will be placed. where the glow-up products live π-b,--build=VALUEβ specifies the type of build to perform. heads up: setting theDFLAGSenvironment variable will override the build type with custom flags, so watch out for that lil plot twist π possible names:debug,plain,release,release-debug,release-nobounds,unittest,profile,profile-gc,docs,ddox,cov,cov-ctfe,unittest-cov,unittest-cov-ctfe,syntaxand custom types
-c,--config=VALUEβ builds the specified configuration. configurations can be defined indub.jsonποΈ--override-config=VALUEβ uses the specified configuration for a certain dependency. can be specified multiple times. format:--override-config=<dependency>/<config>π―--compiler=VALUEβ specifies the compiler binary to use (can be a path). arbitrary pre- and suffixes to the identifiers below are recognized (e.g.ldc2ordmd-2.063) and matched to the proper compiler type:dmd,gdc,ldc,gdmd,ldmdβοΈ-a,--arch=VALUEβ force a different architecture (e.g.x86orx86_64). architecture is a choice πββοΈ-d,--debug=VALUEβ define the specifieddebugversion identifier when building β can be used multiple times. stack 'em up π§--d-version=VALUEβ define the specifiedversionidentifier when building β can be used multiple times. use sparingly, with great power comes great responsibility! π·οΈ for commonly used or combined versions and versions that dependees should be able to use, create configurations in your package instead. periodt.--nodepsβ do not resolve missing dependencies before building. living dangerously, love that for you π--build-mode=VALUEβ specifies the way the compiler and linker are invoked. valid values:separate(default),allAtOnce,singleFileπ--singleβ treats the package name as a filename. the file must contain a package recipe comment. one file, one dream β--force-removeβ deprecated option that does nothing. she's literally just standing there. respectfully, ignore her π--filter-versionsβ [Experimental] filter version identifiers and debug version identifiers to improve build cache efficiency. science is happening π§ͺ--combinedβ tries to build the whole project in a single compiler run. one big group hug π«Ά--print-buildsβ prints the list of available build types. show me the menu π--print-configsβ prints the list of available configurations. same energy, different list.--print-platformβ prints the identifiers for the current build platform as used for the build fields indub.jsonπ--parallelβ runs multiple compiler instances in parallel, if possible. multitasking queen π
π COMMON OPTIONS
see dub(1) β the mothership has the deets πΈ
π EXIT STATUS
0β DUB succeeded. we ate and left no crumbs π₯1β usage errors, unknown command line flags π©2β package not found, package failed to load, miscellaneous error π
π FILES
dub.sdl, dub.json β your recipe files, keep them close π
π§ AUTHOR
Copyright (c) 1999-2026 by The D Language Foundation. legends only π
π ONLINE DOCUMENTATION
http://code.dlang.org/docs/commandline β¨β© β go read, bestie π
π SEE ALSO
dub(1), dub-build(1), dub-test(1), rdmd(1) β the whole friend group fr fr π«Ά
aaaand that's the page! brought to you by The D Language Foundation, dated 2026-08-16, version vibes intact π β¨ mwah, go build something iconic π
π¦ where this page comes from
- arch rolling: dub 1.42.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms