DUB-GENERATE(1)
πΈ NAME πΈ
dub-generate β generates project files using the specified generator β¨ This is the DUB-GENERATE(1) page, bestie, and it's lowkey iconic.
π SYNOPSIS π
Okay so the shape of it is:
dub generate <generator> [<package>[@<version-spec>]] OPTIONS...
π« DESCRIPTION π«
Okay so bestie, dub generate makes project files using one of the supported generators:
visualdβ VisualD project filessublimetextβ SublimeText project filecmakeβ CMake build scriptsbuildβ Builds the package directly
An optional package name can be given to generate a different package than the root/CWD package. Main character energy, tbh.
β¨ OPTIONS β¨
Bestie, here's the whole menu:
--dest=VALUEβ Base directory in which output atifacts will be placed. Yes, "atifacts" is the original spelling β I'm just the messenger π«Ά-b,--build=VALUEβ Specifies the type of build to perform. Heads up: setting theDFLAGSenvironment variable will override the build type with custom flags. Possible names:debug,plain,release,release-debug,release-nobounds,unittest,profile,profile-gc,docs,ddox,cov,cov-ctfe,unittest-cov,unittest-cov-ctfe,syntax, and 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).-d,--debug=VALUEβ Define the specifieddebugversion identifier when building β can be used multiple times.--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.--nodepsβ Do not resolve missing dependencies before building.--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.--force-removeβ Deprecated option that does nothing. It's giving ghost flag π»--filter-versionsβ [Experimental] Filter version identifiers and debug version identifiers to improve build cache efficiency.--combinedβ Tries to build the whole project in a single compiler run.--print-buildsβ Prints the list of available build types.--print-configsβ Prints the list of available configurations.--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.
π«Ά COMMON OPTIONS π«Ά
See dub(1) β yes, that's the whole vibe.
π¦ EXIT STATUS π¦
0β DUB succeeded. Slay.1β usage errors, unknown command line flags.2β package not found, package failed to load, miscellaneous error.
π FILES π
dub.sdldub.json
π AUTHOR π
Copyright (c) 1999-2026 by The D Language Foundation. Iconic.
π ONLINE DOCUMENTATION π
http://code.dlang.org/docs/commandline β¨β©
π SEE ALSO π
π Sign-off: source/version β The D Language Foundation; date β 2026-08-16. Stay hydrated and read your manpages, bestie. periodt. π
π¦ 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