hugo_mod_init.md (1606B)
1 --- 2 title: "hugo mod init" 3 slug: hugo_mod_init 4 url: /commands/hugo_mod_init/ 5 --- 6 ## hugo mod init 7 8 Initialize this project as a Hugo Module. 9 10 ### Synopsis 11 12 Initialize this project as a Hugo Module. 13 It will try to guess the module path, but you may help by passing it as an argument, e.g: 14 15 hugo mod init github.com/gohugoio/testshortcodes 16 17 Note that Hugo Modules supports multi-module projects, so you can initialize a Hugo Module 18 inside a subfolder on GitHub, as one example. 19 20 21 ``` 22 hugo mod init [flags] 23 ``` 24 25 ### Options 26 27 ``` 28 -h, --help help for init 29 ``` 30 31 ### Options inherited from parent commands 32 33 ``` 34 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00 35 --config string config file (default is path/config.yaml|json|toml) 36 --configDir string config dir (default "config") 37 --debug debug output 38 -e, --environment string build environment 39 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern 40 --log enable Logging 41 --logFile string log File path (if set, logging enabled automatically) 42 --quiet build in quiet mode 43 -s, --source string filesystem path to read files relative from 44 --themesDir string filesystem path to themes directory 45 -v, --verbose verbose output 46 --verboseLog verbose logging 47 ``` 48 49 ### SEE ALSO 50 51 * [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers. 52