1HUGO-MOD-GET(1) Hugo Manual HUGO-MOD-GET(1)
2
3
4
6 hugo-mod-get - Resolves dependencies in your current Hugo Project.
7
8
9
11 hugo mod get [flags]
12
13
14
16 Resolves dependencies in your current Hugo Project.
17
18
19 Some examples:
20
21
22 Install the latest version possible for a given module:
23
24
25 hugo mod get github.com/gohugoio/testshortcodes
26
27
28
29 Install a specific version:
30
31
32 hugo mod get github.com/gohugoio/testshortcodes@v0.3.0
33
34
35
36 Install the latest versions of all module dependencies:
37
38
39 hugo mod get -u
40 hugo mod get -u ./... (recursive)
41
42
43
44 Run "go help get" for more information. All flags available for "go
45 get" is also relevant here.
46
47
48 Note that Hugo will always start out by resolving the components de‐
49 fined in the site configuration, provided by a _vendor directory (if no
50 --ignoreVendorPaths flag provided), Go Modules, or a folder inside the
51 themes directory, in that order.
52
53
54 See https://gohugo.io/hugo-modules/ for more information.
55
56
57
59 -h, --help[=false] help for get
60
61
62
64 --clock="" set the clock used by Hugo, e.g. --clock
65 2021-11-06T22:30:00.00+09:00
66
67
68 --config="" config file (default is hugo.yaml|json|toml)
69
70
71 --configDir="config" config dir
72
73
74 --debug[=false] debug output
75
76
77 -e, --environment="" build environment
78
79
80 --ignoreVendorPaths="" ignores any _vendor for module paths match‐
81 ing the given Glob pattern
82
83
84 --log[=false] enable Logging
85
86
87 --logFile="" log File path (if set, logging enabled automatically)
88
89
90 --quiet[=false] build in quiet mode
91
92
93 -s, --source="" filesystem path to read files relative from
94
95
96 --themesDir="" filesystem path to themes directory
97
98
99 -v, --verbose[=false] verbose output
100
101
102 --verboseLog[=false] verbose logging
103
104
105
107 hugo-mod(1)
108
109
110
111Hugo 0.111.3 Jul 2023 HUGO-MOD-GET(1)