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

EXIT STATUS

24       0      DUB succeeded
25
26       1      usage errors, unknown command line flags
27
28       2      package not found, package failed to load, miscellaneous error
29

FILES

31       dub.sdl, dub.json
32

AUTHOR

34       Copyright (c) 1999-2023 by The D Language Foundation
35

ONLINE DOCUMENTATION

37       http://code.dlang.org/docs/commandline
38http://code.dlang.org/docs/commandline
39

SEE ALSO

41       dub(1), dub-convert(1), dub-fetch(1), dub-init(1)
42
43
44
45The D Language Foundation         2023-03-23                        DUB-ADD(1)
Impressum