DUB-ADD(1)
π NAME π
ok so dub-add β the DUB subcommand that literally just adds dependencies to your package file. that's it, that's the whole vibe. she's simple, she's iconic, she does one thing and does it well π
welcome to DUB-ADD(1), brought to you by The D Language Foundation (yes, the whole manual, bestie, buckle up) β¨
β¨ SYNOPSIS β¨
dub add <package>[@<version-spec>] [<packages...>] OPTIONS...
like, you give her a package name (maybe with a version spec attached, cute), you can give her a few more packages after that, and then some OPTIONS... if you're feeling extra π¦
πΈ DESCRIPTION πΈ
She adds <packages> as dependencies. full stop, no notes π
Running dub add <package> is literally the same thing as going into your dub.json/dub.sdl and adding <package> to the "dependencies" section yourself. except now you don't have to, and you can tell everyone you didn't π«Ά
and here's the part that's giving convenience: if you don't specify a version for one of the packages, dub will go query the registry for the latest version. she'll find it for you. main character energy fr β
π OPTIONS π
π COMMON OPTIONS π
See dub(1) β yeah bestie, the whole common-options situation lives over there, go peek π
ngl this is the entire OPTIONS section. that's not me skipping anything, that's just what she wrote. iykyk π
π₯ EXIT STATUS π₯
0β DUB succeeded. slay. everything worked. we love to see it π1β usage errors, unknown command line flags. you typed something she didn't recognize, no cap π2β package not found, package failed to load, miscellaneous error. the "it's giving chaos" bucket π
π FILES π
dub.sdldub.json
these two. these are the files she's messing with. iconic duo π
π§ AUTHOR π§
Copyright (c) 1999-2026 by The D Language Foundation π
π ONLINE DOCUMENTATION π
http://code.dlang.org/docs/commandline
go read the docs, bestie, they're right there π¦
β SEE ALSO β
the whole dub friend group, honestly π β¨
okay that's the whole page!! go forth and add your dependencies π this was DUB-ADD(1) from The D Language Foundation, dated 2026-08-16 β mwah, love u, bye ππ§π
π¦ 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