hugo_mod_get.md - hugo - [fork] hugo port for 9front
HTML git clone https://git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
hugo_mod_get.md (2206B)
---
1 ---
2 title: "hugo mod get"
3 slug: hugo_mod_get
4 url: /commands/hugo_mod_get/
5 ---
6 ## hugo mod get
7
8 Resolves dependencies in your current Hugo project
9
10 ### Synopsis
11
12
13 Resolves dependencies in your current Hugo project.
14
15 Some examples:
16
17 Install the latest version possible for a given module:
18
19 hugo mod get github.com/gohugoio/testshortcodes
20
21 Install a specific version:
22
23 hugo mod get github.com/gohugoio/testshortcodes@v0.3.0
24
25 Install the latest versions of all direct module dependencies:
26
27 hugo mod get
28 hugo mod get ./... (recursive)
29
30 Install the latest versions of all module dependencies (direct and indirect):
31
32 hugo mod get -u
33 hugo mod get -u ./... (recursive)
34
35 Run "go help get" for more information. All flags available for "go get" is also relevant here.
36
37 Note that Hugo will always start out by resolving the components defined in the site
38 configuration, provided by a _vendor directory (if no --ignoreVendorPaths flag provided),
39 Go Modules, or a folder inside the themes directory, in that order.
40
41 See https://gohugo.io/hugo-modules/ for more information.
42
43
44
45 ```
46 hugo mod get [flags] [args]
47 ```
48
49 ### Options
50
51 ```
52 -h, --help help for get
53 ```
54
55 ### Options inherited from parent commands
56
57 ```
58 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
59 --config string config file (default is hugo.yaml|json|toml)
60 --configDir string config dir (default "config")
61 -d, --destination string filesystem path to write files to
62 -e, --environment string build environment
63 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
64 --logLevel string log level (debug|info|warn|error)
65 --noBuildLock don't create .hugo_build.lock file
66 --quiet build in quiet mode
67 -M, --renderToMemory render to memory (mostly useful when running the server)
68 -s, --source string filesystem path to read files relative from
69 --themesDir string filesystem path to themes directory
70 ```
71
72 ### SEE ALSO
73
74 * [hugo mod](/commands/hugo_mod/) - Manage modules
75