DUB-UPGRADE(1)
π dub-upgrade β like, dub-upgrade(1), bestie β¨
okay so this is the dub-upgrade page from The D Language Foundation (section 1 of the manual, iykyk), and honestly? she's that girl. let's get into it π
πΈ NAME πΈ
dub-upgrade β forces an upgrade of the dependencies π₯
like. she will make it happen. no asking nicely.
π¦ SYNOPSIS π¦
dub upgrade [<packages...>] OPTIONS...
that's it. that's the whole vibe check. packages optional, options always welcome π
β¨ DESCRIPTION β¨
so basically dub-upgrade upgrades all the dependencies of the package by querying the package registry(ies) for new versions. plural registries. she's thorough like that π
and the way it works? it updates the versions stored in the selections file (dub.selections.json) accordingly. so like, the receipts get rewritten, fr fr.
if you name one or more packages, only those dependencies will get upgraded. otherwise? every single direct AND indirect dependency of the root package gets upgraded. all of them. no crumbs left behind π
π OPTIONS π
--prereleaseβ uses the latest pre-release version, even if release versions are available. living on the edge bestie ππ-s,--sub-packagesβ also upgrades dependencies of all directory based sub packages. she goes deep. yes ma'am π«Ά--verifyβ updates the project and performs a build. if successful, rewrites the selected versions file. and that's<to be implemented>btw β literally written like that in the docs, so like, don't come for me π--dry-runβ only prints what would be upgraded, but doesn't actually upgrade anything. window shopping. delulu but productive β¨--missing-onlyβ performs an upgrade only for dependencies that don't yet have a version selected. this is also done automatically before each build. so sneaky, so helpful π--force-removeβ deprecated option that does nothing. she's just there. standing. iconic for no reason πΈ
π§ COMMON OPTIONS π§
see dub(1). go read her too, she's the main character π¦
π EXIT STATUS π
0β DUB succeeded. slay π1β usage errors, unknown command line flags. you did a whoopsie π2β package not found, package failed to load, miscellaneous error. it's giving chaos, ngl π
π FILES π
dub.sdl,dub.json
those two. the whole personality. keep them safe π
π AUTHOR π
Copyright (c) 1999-2026 by The D Language Foundation
look at that range. 1999 to 2026. generational π
π ONLINE DOCUMENTATION π
http://code.dlang.org/docs/commandline β¨β©
go click, bestie. absorb the knowledge β
π₯ SEE ALSO π₯
the mothership. the blueprint. go say hi π«Ά
okay and finally, the cute little sign-off that lives at the bottom of the page β it's brought to you by The D Language Foundation, dated 2026-08-16, and that's the whole DUB-UPGRADE(1) moment. periodt. π
β¨π
π¦ 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