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=system instead. 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.sdl
  • dub.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 🧚

dub(1), dub-remove-local(1)


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