github.com/rabbouni145/gg@v0.47.1/docs/content/en/commands/hugo.md (about) 1 --- 2 date: 2018-08-17 3 title: "hugo" 4 slug: hugo 5 url: /commands/hugo/ 6 --- 7 ## hugo 8 9 hugo builds your site 10 11 ### Synopsis 12 13 hugo is the main command, used to build your Hugo site. 14 15 Hugo is a Fast and Flexible Static Site Generator 16 built with love by spf13 and friends in Go. 17 18 Complete documentation is available at http://gohugo.io/. 19 20 ``` 21 hugo [flags] 22 ``` 23 24 ### Options 25 26 ``` 27 -b, --baseURL string hostname (and path) to the root, e.g. http://spf13.com/ 28 -D, --buildDrafts include content marked as draft 29 -E, --buildExpired include expired content 30 -F, --buildFuture include content with publishdate in the future 31 --cacheDir string filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/ 32 --canonifyURLs (deprecated) if true, all relative URLs will be canonicalized using baseURL 33 --cleanDestinationDir remove files from destination not found in static directories 34 --config string config file (default is path/config.yaml|json|toml) 35 -c, --contentDir string filesystem path to content directory 36 --debug debug output 37 -d, --destination string filesystem path to write files to 38 --disableKinds strings disable different kind of pages (home, RSS etc.) 39 --enableGitInfo add Git revision, date and author info to the pages 40 --forceSyncStatic copy all files when static is changed. 41 --gc enable to run some cleanup tasks (remove unused cache files) after the build 42 -h, --help help for hugo 43 --i18n-warnings print missing translations 44 --ignoreCache ignores the cache directory 45 -l, --layoutDir string filesystem path to layout directory 46 --log enable Logging 47 --logFile string log File path (if set, logging enabled automatically) 48 --minify minify any supported output format (HTML, XML etc.) 49 --noChmod don't sync permission mode of files 50 --noTimes don't sync modification time of files 51 --pluralizeListTitles (deprecated) pluralize titles in lists using inflect (default true) 52 --preserveTaxonomyNames (deprecated) preserve taxonomy names as written ("GĂ©rard Depardieu" vs "gerard-depardieu") 53 --quiet build in quiet mode 54 --renderToMemory render to memory (only useful for benchmark testing) 55 -s, --source string filesystem path to read files relative from 56 --stepAnalysis display memory and timing of different steps of the program 57 --templateMetrics display metrics about template executions 58 --templateMetricsHints calculate some improvement hints when combined with --templateMetrics 59 -t, --theme string theme to use (located in /themes/THEMENAME/) 60 --themesDir string filesystem path to themes directory 61 --uglyURLs (deprecated) if true, use /filename.html instead of /filename/ 62 -v, --verbose verbose output 63 --verboseLog verbose logging 64 -w, --watch watch filesystem for changes and recreate as needed 65 ``` 66 67 ### SEE ALSO 68 69 * [hugo benchmark](/commands/hugo_benchmark/) - Benchmark Hugo by building a site a number of times. 70 * [hugo check](/commands/hugo_check/) - Contains some verification checks 71 * [hugo config](/commands/hugo_config/) - Print the site configuration 72 * [hugo convert](/commands/hugo_convert/) - Convert your content to different formats 73 * [hugo env](/commands/hugo_env/) - Print Hugo version and environment info 74 * [hugo gen](/commands/hugo_gen/) - A collection of several useful generators. 75 * [hugo import](/commands/hugo_import/) - Import your site from others. 76 * [hugo list](/commands/hugo_list/) - Listing out various types of content 77 * [hugo new](/commands/hugo_new/) - Create new content for your site 78 * [hugo server](/commands/hugo_server/) - A high performance webserver 79 * [hugo version](/commands/hugo_version/) - Print the version number of Hugo 80 81 ###### Auto generated by spf13/cobra on 17-Aug-2018