URI: 
       hugo_mod_init.md - hugo - [fork] hugo port for 9front
  HTML git clone https://git.drkhsh.at/hugo.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
       hugo_mod_init.md (2023B)
       ---
            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] [args]
           23 ```
           24 
           25 ### Options
           26 
           27 ```
           28   -b, --baseURL string           hostname (and path) to the root, e.g. https://spf13.com/
           29       --cacheDir string          filesystem path to cache directory
           30   -c, --contentDir string        filesystem path to content directory
           31   -h, --help                     help for init
           32       --renderSegments strings   named segments to render (configured in the segments config)
           33   -t, --theme strings            themes to use (located in /themes/THEMENAME/)
           34 ```
           35 
           36 ### Options inherited from parent commands
           37 
           38 ```
           39       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
           40       --config string              config file (default is hugo.yaml|json|toml)
           41       --configDir string           config dir (default "config")
           42   -d, --destination string         filesystem path to write files to
           43   -e, --environment string         build environment
           44       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
           45       --logLevel string            log level (debug|info|warn|error)
           46       --noBuildLock                don't create .hugo_build.lock file
           47       --quiet                      build in quiet mode
           48   -M, --renderToMemory             render to memory (mostly useful when running the server)
           49   -s, --source string              filesystem path to read files relative from
           50       --themesDir string           filesystem path to themes directory
           51 ```
           52 
           53 ### SEE ALSO
           54 
           55 * [hugo mod](/commands/hugo_mod/)         - Manage modules
           56