1HUGO-MOD-INIT(1) Hugo Manual HUGO-MOD-INIT(1)
2
3
4
6 hugo-mod-init - Initialize this project as a Hugo Module.
7
8
9
11 hugo mod init [flags]
12
13
14
16 Initialize this project as a Hugo Module. It will try to guess the
17 module path, but you may help by passing it as an argument, e.g:
18
19
20 hugo mod init github.com/gohugoio/testshortcodes
21
22
23
24 Note that Hugo Modules supports multi-module projects, so you can ini‐
25 tialize a Hugo Module inside a subfolder on GitHub, as one example.
26
27
28
30 -h, --help[=false] help for init
31
32
33
35 --clock="" set the clock used by Hugo, e.g. --clock
36 2021-11-06T22:30:00.00+09:00
37
38
39 --config="" config file (default is hugo.yaml|json|toml)
40
41
42 --configDir="config" config dir
43
44
45 --debug[=false] debug output
46
47
48 -e, --environment="" build environment
49
50
51 --ignoreVendorPaths="" ignores any _vendor for module paths match‐
52 ing the given Glob pattern
53
54
55 --log[=false] enable Logging
56
57
58 --logFile="" log File path (if set, logging enabled automatically)
59
60
61 --quiet[=false] build in quiet mode
62
63
64 -s, --source="" filesystem path to read files relative from
65
66
67 --themesDir="" filesystem path to themes directory
68
69
70 -v, --verbose[=false] verbose output
71
72
73 --verboseLog[=false] verbose logging
74
75
76
78 hugo-mod(1)
79
80
81
82Hugo 0.111.3 Jul 2023 HUGO-MOD-INIT(1)