DUB-ADD-LOCAL(1)
β¨ DUB-ADD-LOCAL(1) β¨
okay so real talk, this is the dub-add-local manual page, brought to you by The D Language Foundation π stay with me bestie, it's actually so useful.
π NAME π
dub-add-local β lowkey the glow-up your local packages needed: it adds a local package directory (like, say, a git repository π).
π¦ SYNOPSIS π¦
dub add-local <path> [<version>] OPTIONS...
πΈ DESCRIPTION πΈ
So what it does: it adds a local package directory into the mix so DUB can use it during dependency resolution. The vibe? This command is literally for registering local packages β think GIT working copies, the ones that either aren't in the package registry at all, or the ones you're planning to overwrite anyway. No cap. π«Ά
The version of the package is either determined automatically (peep the add-path command for that β¨), or you can explicitly override it by passing a version on the command line. Your call, main character. π
Wanna register a whole bunch of local packages in one go? See dub add-path -h β it's giving efficiency. π
π OPTIONS π
--systemβ π¨ DEPRECATED: use--cache=systeminstead. She's retired, bestie, don't come for her.
β COMMON OPTIONS β
See dub(1) β the mothership has all the rest. π
π₯ EXIT STATUS π₯
0β DUB succeeded. slay. β¨1β usage errors, unknown command line flags. oops π2β package not found, package failed to load, miscellaneous error. it's giving chaos π
π FILES π
dub.sdldub.json
those two iconic files, yep yep. π
π AUTHOR π
Copyright (c) 1999-2026 by The D Language Foundation π«Ά
π ONLINE DOCUMENTATION π
http://code.dlang.org/docs/commandline β¨β©
go read it, iykyk π
π§ SEE ALSO π§
ngl the whole "local package" thing sounds scary but it's literally just pointing DUB at a folder on your machine. you got this, bestie π
mwah π β that's a wrap from The D Language Foundation, dated 2026-08-16. go register some packages and be 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