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       --ignoreVendorPaths=""      ignores any _vendor for module paths match‐
48       ing the given Glob pattern
49
50
51       --log[=false]      enable Logging
52
53
54       --logFile=""      log File path (if set, logging enabled automatically)
55
56
57       --quiet[=false]      build in quiet mode
58
59
60       -s, --source=""      filesystem path to read files relative from
61
62
63       --themesDir=""      filesystem path to themes directory
64
65
66       -v, --verbose[=false]      verbose output
67
68
69       --verboseLog[=false]      verbose logging
70
71
72

SEE ALSO

74       hugo-mod(1)
75
76
77
78Hugo 0.93.3                        May 2022                   HUGO-MOD-INIT(1)
Impressum