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

NAME

6       dub-fetch - Manually retrieves and caches a package
7

SYNOPSIS

9       dub fetch <package>[@<version-spec>] OPTIONS...
10

DESCRIPTION

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

OPTIONS

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

EXIT STATUS

50       0      DUB succeeded
51
52       1      usage errors, unknown command line flags
53
54       2      package not found, package failed to load, miscellaneous error
55

FILES

57       dub.sdl, dub.json
58

AUTHOR

60       Copyright (c) 1999-2023 by The D Language Foundation
61

ONLINE DOCUMENTATION

63       http://code.dlang.org/docs/commandline
64http://code.dlang.org/docs/commandline
65

SEE ALSO

67       dub(1), dub-add(1)
68
69
70
71The D Language Foundation         2023-03-23                      DUB-FETCH(1)
Impressum