1HUGO-MOD-INIT(1)                  Hugo Manual                 HUGO-MOD-INIT(1)
2
3
4

NAME

6       hugo-mod-init - Initialize this project as a Hugo Module.
7
8
9

SYNOPSIS

11       hugo mod init [flags]
12
13
14

DESCRIPTION

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

OPTIONS

30       -h, --help[=false]      help for init
31
32
33

OPTIONS INHERITED FROM PARENT COMMANDS

35       --config=""      config file (default is path/config.yaml|json|toml)
36
37
38       --configDir="config"      config dir
39
40
41       --debug[=false]      debug output
42
43
44       -e, --environment=""      build environment
45
46
47       --ignoreVendor[=false]      ignores any _vendor directory
48
49
50       --ignoreVendorPaths=""      ignores any _vendor for module paths match‐
51       ing the given Glob pattern
52
53
54       --log[=false]      enable Logging
55
56
57       --logFile=""      log File path (if set, logging enabled automatically)
58
59
60       --quiet[=false]      build in quiet mode
61
62
63       -s, --source=""      filesystem path to read files relative from
64
65
66       --themesDir=""      filesystem path to themes directory
67
68
69       -v, --verbose[=false]      verbose output
70
71
72       --verboseLog[=false]      verbose logging
73
74
75

SEE ALSO

77       hugo-mod(1)
78
79
80
81Hugo 0.80.0                        Jan 2021                   HUGO-MOD-INIT(1)
Impressum