1DUB-ADD-LOCAL(1) The D Language Foundation DUB-ADD-LOCAL(1)
2
3
4
6 dub-add-local - Adds a local package directory (e.g. a git repository)
7
9 dub add-local <path> [<version>] OPTIONS...
10
12 Adds a local package directory to be used during dependency resolution.
13 This command is useful for registering local packages, such as GIT
14 working copies, that are either not available in the package registry,
15 or are supposed to be overwritten.
16
17
18
19 The version of the package is either determined automatically (see the
20 "add-path" command, or can be explicitly overwritten by passing a ver‐
21 sion on the command line.
22
23
24
25 See 'dub add-path -h' for a way to register multiple local packages at
26 once.
27
29 --system
30 Register system-wide instead of user-wide
31
33 0 DUB succeeded
34
35 1 usage errors, unknown command line flags
36
37 2 package not found, package failed to load, miscellaneous error
38
40 dub.sdl, dub.json
41
43 Copyright (c) 1999-2023 by The D Language Foundation
44
46 http://code.dlang.org/docs/commandline
47 ⟨http://code.dlang.org/docs/commandline⟩
48
50 dub(1), dub-remove-local(1)
51
52
53
54The D Language Foundation 2023-03-23 DUB-ADD-LOCAL(1)