| DUB-FETCH(1) | The D Language Foundation | DUB-FETCH(1) |
نام (NAME)
dub-fetch - Explicitly retrieves and caches packages
خلاصه دستور (SYNOPSIS)
dub fetch <package>[@<version-spec>] OPTIONS...
توضیحات (DESCRIPTION)
When run with one or more arguments, regardless of the location it is run in,
it will fetch the packages matching the argument(s).
Examples:
$ dub fetch vibe-d
$ dub fetch vibe-d@v0.9.0 --cache=local --recursive
When run in a project with no arguments, it will fetch all dependencies for that project.
If the project doesn't have set dependencies (no 'dub.selections.json'), it will also perform dependency resolution.
Example:
$ cd myProject && dub fetch
Note that the 'build', 'run', and any other command that need packages will automatically perform fetch,
hence it is not generally necessary to run this command before any other.
گزینهها (OPTIONS)
-r, --recursive
--version=VALUE
--force-remove
COMMON OPTIONS
See dub(1)
وضعیت خروج (EXIT STATUS)
- 0
- DUB succeeded
- 1
- usage errors, unknown command line flags
- 2
- package not found, package failed to load, miscellaneous error
فایلها (FILES)
dub.sdl, dub.json
نویسنده (AUTHOR)
Copyright (c) 1999-2026 by The D Language Foundation
ONLINE DOCUMENTATION
همچنین ببینید (SEE ALSO)
| 2026-08-16 | The D Language Foundation |