DUB-FETCH(1) | The D Language Foundation | DUB-FETCH(1) |
dub-fetch - Manually retrieves and caches a package
dub fetch <package>[@<version-spec>] OPTIONS...
Note: Use "dub add <dependency>" if you just want to use a certain package as a dependency, you don't have to explicitly fetch packages.
Explicit retrieval/removal of packages is only needed when you want to put packages in a place where several applications can share them. If you just have a dependency to add, use the `add` command. Dub will do the rest for you.
Without specified options, placement/removal will default to a user wide shared location.
Complete applications can be retrieved and run easily by e.g.
$ dub fetch vibelog --cache=local
$ dub run vibelog --cache=local
This will grab all needed dependencies and compile and run the application.
--version=VALUE
--force-remove
See dub(1)
dub.sdl, dub.json
Copyright (c) 1999-2024 by The D Language Foundation
http://code.dlang.org/docs/commandline
dub(1), dub-add(1)
2024-04-01 | The D Language Foundation |