1DUB-UPGRADE(1)             The D Language Foundation            DUB-UPGRADE(1)
2
3
4

NAME

6       dub-upgrade - Forces an upgrade of the dependencies
7

SYNOPSIS

9       dub upgrade [<packages...>] OPTIONS...
10

DESCRIPTION

12       Upgrades  all  dependencies of the package by querying the package reg‐
13       istry(ies) for new versions.
14
15
16
17       This will update the versions stored in the selections file (dub.selec‐
18       tions.json) accordingly.
19
20
21
22       If  one  or  more  package names are specified, only those dependencies
23       will be upgraded. Otherwise all direct and indirect dependencies of the
24       root package will get upgraded.
25

OPTIONS

27       --prerelease
28           Uses  the  latest pre-release version, even if release versions are
29           available
30
31       -s, --sub-packages
32           Also upgrades dependencies of all directory based sub packages
33
34       --verify
35           Updates the project and performs a build. If  successful,  rewrites
36           the selected versions file <to be implemented>.
37
38       --dry-run
39           Only  print what would be upgraded, but don't actually upgrade any‐
40           thing.
41
42       --missing-only
43           Performs an upgrade only for dependencies that  don't  yet  have  a
44           version  selected.  This  is  also  done  automatically before each
45           build.
46
47       --force-remove
48           Deprecated option that does nothing.
49

EXIT STATUS

51       0      DUB succeeded
52
53       1      usage errors, unknown command line flags
54
55       2      package not found, package failed to load, miscellaneous error
56

FILES

58       dub.sdl, dub.json
59

AUTHOR

61       Copyright (c) 1999-2023 by The D Language Foundation
62

ONLINE DOCUMENTATION

64       http://code.dlang.org/docs/commandline
65http://code.dlang.org/docs/commandline
66

SEE ALSO

68       dub(1)
69
70
71
72The D Language Foundation         2023-03-23                    DUB-UPGRADE(1)
Impressum