DUB-CONVERT(1)

πŸŽ€ dub-convert β€” the glow-up your package recipe deserves πŸŽ€

okay so real talk, this is the dub-convert page from the D Language Foundation's dub manual (that's dub-convert(1) if you're being fancy πŸ’…), and it's literally just about flipping your package recipe between two file formats. that's it. that's the whole vibe. let's get into it πŸ¦‹


✨ NAME ✨

dub-convert β€” converts the file format of the package recipe. no cap, that's the entire job description 🫢

✨ SYNOPSIS ✨

dub convert OPTIONS...

✨ DESCRIPTION ✨

so basically this command converts between JSON and SDLang formatted package recipe files. that's the whole thing. it's giving "glow-up translator" energy ✨

⚠️ Warning, bestie, listen to me: beware that any formatting and comments within the package recipe will get lost in the conversion process. like, gone gone. 😭 so if you've got your little commented-out vibes in there, they are not surviving the trip. screenshot it or something first, iykyk πŸ’€

✨ OPTIONS ✨

  • -f, --format=VALUE β€” specifies the target package recipe format. possible values:
    • json
    • sdl
  • -s, --stdout β€” outputs the converted package recipe to stdout instead of writing to disk. perfect for when you just wanna peek at it before committing to the whole thing πŸ‘€βœ¨

πŸ’œ COMMON OPTIONS πŸ’œ

see dub(1) β€” the shared stuff lives over there, go check it out 🧚

✨ EXIT STATUS ✨

  • 0 β€” DUB succeeded. slay. πŸŽ‰
  • 1 β€” usage errors, unknown command line flags. oops πŸ™ˆ
  • 2 β€” package not found, package failed to load, miscellaneous error. the "it's complicated" status πŸ’€

✨ FILES ✨

  • dub.sdl
  • dub.json

the two main characters of this whole story πŸ‘‘

✨ AUTHOR ✨

Copyright (c) 1999-2026 by The D Language Foundation. iconic. no further questions 🌈

✨ ONLINE DOCUMENTATION ✨

http://code.dlang.org/docs/commandline ⟨⟩ β€” go read the docs, bestie, they're right there πŸ”₯

✨ SEE ALSO ✨

dub(1), dub-add(1), dub-init(1)


and that's the whole page, you ate that πŸ’– this cutie was brought to you by The D Language Foundation, dated 2026-08-16 β€” mwah, go convert something πŸ“βœ¨πŸ«Ά

πŸ“¦ where this page comes from