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

NAME

6       dub-add - Adds dependencies to the package file.
7

SYNOPSIS

9       dub add <package>[@<version-spec>] [<packages...>] OPTIONS...
10

DESCRIPTION

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

OPTIONS

23   COMMON OPTIONS
24       See dub(1)
25

EXIT STATUS

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

FILES

34       dub.sdl, dub.json
35

AUTHOR

37       Copyright (c) 1999-2023 by The D Language Foundation
38

ONLINE DOCUMENTATION

40       http://code.dlang.org/docs/commandline ⟨⟩
41

SEE ALSO

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)
Impressum