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

NAME

6       dub-add-path - Adds a default package search path
7

SYNOPSIS

9       dub add-path <path> OPTIONS...
10

DESCRIPTION

12       Adds a default package search path. All direct sub folders of this path
13       will be searched for package descriptions and will be made available as
14       packages.  Using this command has the equivalent effect as calling 'dub
15       add-local' on each of the sub folders manually.
16
17
18
19       Any packages registered using add-path will be preferred over  packages
20       downloaded  from  the  package registry when searching for dependencies
21       during a build operation.
22
23
24
25       The version of the packages will be determined by one of the following:
26
27         - For GIT working copies, the last tag (git describe) is used to  de‐
28       termine the version
29
30         -  If  the package contains a "version" field in the package descrip‐
31       tion, this is used
32
33         - If neither of those apply, "~master" is assumed
34

OPTIONS

36       --system
37           Register system-wide instead of user-wide
38

EXIT STATUS

40       0      DUB succeeded
41
42       1      usage errors, unknown command line flags
43
44       2      package not found, package failed to load, miscellaneous error
45

FILES

47       dub.sdl, dub.json
48

AUTHOR

50       Copyright (c) 1999-2023 by The D Language Foundation
51

ONLINE DOCUMENTATION

53       http://code.dlang.org/docs/commandline
54http://code.dlang.org/docs/commandline
55

SEE ALSO

57       dub(1), dub-remove-path(1)
58
59
60
61The D Language Foundation         2023-03-23                   DUB-ADD-PATH(1)
Impressum