DUB-LIST(1)

πŸ’… dub-list(1) β€” the "who's even here" list command

okay bestie, so this is the dub-list page from the D Language Foundation's manual set. we're talking about the command that prints a list of all β€” or just some β€” of the local packages that dub knows about. it's giving inventory check. it's giving "let me see who's in the group chat." πŸŽ€


✨ SYNOPSIS ✨

dub list [<package>[@<version-spec>]] OPTIONS...

that's it, that's the whole vibe. run it bare or hand it a package name and get to scrolling. πŸ¦‹


🌸 DESCRIPTION 🌸

so dub list prints a list of all or selected local packages. and when I say all, I mean it literally ate:

  • every cached package, whether it's user or system wide πŸ’–
  • every package sitting in the package search paths β€” those are the ones you add with dub add-path, iykyk
  • every package you manually registered with dub add-local πŸ‘‘

and if you specify a package (and optionally a version spec too, because we love precision), then only the matching packages get shown. no cap, it filters for you. ✨


πŸ’… OPTIONS πŸ’…

COMMON OPTIONS

  • See dub(1) β€” yeah this is the part where it points you at the main dub(1) page for the shared options. go read that one, bestie, it's got the goods. πŸ“–

🫢 EXIT STATUS 🫢

  • 0 β€” DUB succeeded. slay. everything worked, you can go touch grass now. 🌈
  • 1 β€” usage errors, unknown command line flags. like, you typed something it doesn't recognize. it's giving "who said that." πŸ’€
  • 2 β€” package not found, package failed to load, miscellaneous error. the package is literally not in the building. 😭

πŸŽ€ FILES πŸŽ€

  • dub.sdl
  • dub.json

these are the two package description files in the mix, iconic duo, no notes. πŸ“


πŸ‘‘ AUTHOR πŸ‘‘

Copyright (c) 1999-2026 by The D Language Foundation. they've been at this a minute and honestly? respect. πŸ’œ


🧚 ONLINE DOCUMENTATION 🧚

http://code.dlang.org/docs/commandline

go click around, there's lore in there fr fr. ⭐


🌸 SEE ALSO 🌸

dub-search(1) is the one you want when the thing you're looking for isn't local yet β€” think of it as the "expand your search radius" button. πŸ”


quick vibe check: if your package isn't showing up, it might not be cached, not in your search paths, and not registered with dub add-local. those are the three doors it comes through, so check all three before you spiral. 🫢

and that's the whole page!! ✨ written up by The D Language Foundation, page dated 2026-08-16, manual page DUB-LIST(1) ✨ β€” mwah, go list some packages bestie πŸ’…πŸ’–

πŸ“¦ where this page comes from