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