1DUB-FETCH(1) The D Language Foundation DUB-FETCH(1)
2
3
4
6 dub-fetch - Manually retrieves and caches a package
7
9 dub fetch <package>[@<version-spec>] OPTIONS...
10
12 Note: Use "dub add <dependency>" if you just want to use a certain
13 package as a dependency, you don't have to explicitly fetch packages.
14
15
16
17 Explicit retrieval/removal of packages is only needed when you want to
18 put packages in a place where several applications can share them. If
19 you just have a dependency to add, use the `add` command. Dub will do
20 the rest for you.
21
22
23
24 Without specified options, placement/removal will default to a user
25 wide shared location.
26
27
28
29 Complete applications can be retrieved and run easily by e.g.
30
31 $ dub fetch vibelog --cache=local
32
33 $ dub run vibelog --cache=local
34
35
36
37 This will grab all needed dependencies and compile and run the applica‐
38 tion.
39
41 --version=VALUE
42 Use the specified version/branch instead of the latest available
43 match The remove command also accepts "*" here as a wildcard to re‐
44 move all versions of the package from the specified location
45
46 --force-remove
47 Deprecated option that does nothing
48
49 COMMON OPTIONS
50 See dub(1)
51
53 0 DUB succeeded
54
55 1 usage errors, unknown command line flags
56
57 2 package not found, package failed to load, miscellaneous error
58
60 dub.sdl, dub.json
61
63 Copyright (c) 1999-2023 by The D Language Foundation
64
66 http://code.dlang.org/docs/commandline ⟨⟩
67
69 dub(1), dub-add(1)
70
71
72
73The D Language Foundation 2023-07-24 DUB-FETCH(1)