1DUB-ADD(1) The D Language Foundation DUB-ADD(1)
2
3
4
6 dub-add - Adds dependencies to the package file.
7
9 dub add <package>[@<version-spec>] [<packages...>] OPTIONS...
10
12 Adds <packages> as dependencies.
13
14
15
16 Running "dub add <package>" is the same as adding <package> to the "de‐
17 pendencies" section in dub.json/dub.sdl.
18
19 If no version is specified for one of the packages, dub will query the
20 registry for the latest version.
21
23 COMMON OPTIONS
24 See dub(1)
25
27 0 DUB succeeded
28
29 1 usage errors, unknown command line flags
30
31 2 package not found, package failed to load, miscellaneous error
32
34 dub.sdl, dub.json
35
37 Copyright (c) 1999-2023 by The D Language Foundation
38
40 http://code.dlang.org/docs/commandline ⟨⟩
41
43 dub(1), dub-convert(1), dub-fetch(1), dub-init(1)
44
45
46
47The D Language Foundation 2023-07-24 DUB-ADD(1)