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
39   COMMON OPTIONS
40       See dub(1)
41

EXIT STATUS

43       0      DUB succeeded
44
45       1      usage errors, unknown command line flags
46
47       2      package not found, package failed to load, miscellaneous error
48

FILES

50       dub.sdl, dub.json
51

AUTHOR

53       Copyright (c) 1999-2023 by The D Language Foundation
54

ONLINE DOCUMENTATION

56       http://code.dlang.org/docs/commandline ⟨⟩
57

SEE ALSO

59       dub(1), dub-remove-path(1)
60
61
62
63The D Language Foundation         2023-07-24                   DUB-ADD-PATH(1)
Impressum