mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 06:30:33 +03:00
docs: Regen CLI docs
This commit is contained in:
parent
0ccb6cdc04
commit
76ef3f42fa
12 changed files with 114 additions and 102 deletions
|
@ -56,6 +56,7 @@ hugo [flags]
|
||||||
--printPathWarnings print warnings on duplicate target paths etc.
|
--printPathWarnings print warnings on duplicate target paths etc.
|
||||||
--printUnusedTemplates print warnings on unused templates.
|
--printUnusedTemplates print warnings on unused templates.
|
||||||
--quiet build in quiet mode
|
--quiet build in quiet mode
|
||||||
|
--renderSegments strings named segments to render (configured in the segments config)
|
||||||
--renderToMemory render to memory (mostly useful when running the server)
|
--renderToMemory render to memory (mostly useful when running the server)
|
||||||
-s, --source string filesystem path to read files relative from
|
-s, --source string filesystem path to read files relative from
|
||||||
--templateMetrics display metrics about template executions
|
--templateMetrics display metrics about template executions
|
||||||
|
|
|
@ -24,6 +24,7 @@ hugo config [command] [flags]
|
||||||
--format string preferred file format (toml, yaml or json) (default "toml")
|
--format string preferred file format (toml, yaml or json) (default "toml")
|
||||||
-h, --help help for config
|
-h, --help help for config
|
||||||
--lang string the language to display config for. Defaults to the first language defined.
|
--lang string the language to display config for. Defaults to the first language defined.
|
||||||
|
--renderSegments strings named segments to render (configured in the segments config)
|
||||||
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ hugo config mounts [flags] [args]
|
||||||
--cacheDir string filesystem path to cache directory
|
--cacheDir string filesystem path to cache directory
|
||||||
-c, --contentDir string filesystem path to content directory
|
-c, --contentDir string filesystem path to content directory
|
||||||
-h, --help help for mounts
|
-h, --help help for mounts
|
||||||
|
--renderSegments strings named segments to render (configured in the segments config)
|
||||||
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ hugo mod clean [flags] [args]
|
||||||
-c, --contentDir string filesystem path to content directory
|
-c, --contentDir string filesystem path to content directory
|
||||||
-h, --help help for clean
|
-h, --help help for clean
|
||||||
--pattern string pattern matching module paths to clean (all if not set), e.g. "**hugo*"
|
--pattern string pattern matching module paths to clean (all if not set), e.g. "**hugo*"
|
||||||
|
--renderSegments strings named segments to render (configured in the segments config)
|
||||||
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ hugo mod graph [flags] [args]
|
||||||
--clean delete module cache for dependencies that fail verification
|
--clean delete module cache for dependencies that fail verification
|
||||||
-c, --contentDir string filesystem path to content directory
|
-c, --contentDir string filesystem path to content directory
|
||||||
-h, --help help for graph
|
-h, --help help for graph
|
||||||
|
--renderSegments strings named segments to render (configured in the segments config)
|
||||||
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@ hugo mod init [flags] [args]
|
||||||
--cacheDir string filesystem path to cache directory
|
--cacheDir string filesystem path to cache directory
|
||||||
-c, --contentDir string filesystem path to content directory
|
-c, --contentDir string filesystem path to content directory
|
||||||
-h, --help help for init
|
-h, --help help for init
|
||||||
|
--renderSegments strings named segments to render (configured in the segments config)
|
||||||
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ hugo mod npm pack [flags] [args]
|
||||||
--cacheDir string filesystem path to cache directory
|
--cacheDir string filesystem path to cache directory
|
||||||
-c, --contentDir string filesystem path to content directory
|
-c, --contentDir string filesystem path to content directory
|
||||||
-h, --help help for pack
|
-h, --help help for pack
|
||||||
|
--renderSegments strings named segments to render (configured in the segments config)
|
||||||
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ hugo mod tidy [flags] [args]
|
||||||
--cacheDir string filesystem path to cache directory
|
--cacheDir string filesystem path to cache directory
|
||||||
-c, --contentDir string filesystem path to content directory
|
-c, --contentDir string filesystem path to content directory
|
||||||
-h, --help help for tidy
|
-h, --help help for tidy
|
||||||
|
--renderSegments strings named segments to render (configured in the segments config)
|
||||||
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ hugo mod vendor [flags] [args]
|
||||||
--cacheDir string filesystem path to cache directory
|
--cacheDir string filesystem path to cache directory
|
||||||
-c, --contentDir string filesystem path to content directory
|
-c, --contentDir string filesystem path to content directory
|
||||||
-h, --help help for vendor
|
-h, --help help for vendor
|
||||||
|
--renderSegments strings named segments to render (configured in the segments config)
|
||||||
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@ hugo mod verify [flags] [args]
|
||||||
--clean delete module cache for dependencies that fail verification
|
--clean delete module cache for dependencies that fail verification
|
||||||
-c, --contentDir string filesystem path to content directory
|
-c, --contentDir string filesystem path to content directory
|
||||||
-h, --help help for verify
|
-h, --help help for verify
|
||||||
|
--renderSegments strings named segments to render (configured in the segments config)
|
||||||
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ hugo new content [path] [flags]
|
||||||
-f, --force overwrite file if it already exists
|
-f, --force overwrite file if it already exists
|
||||||
-h, --help help for content
|
-h, --help help for content
|
||||||
-k, --kind string content type to create
|
-k, --kind string content type to create
|
||||||
|
--renderSegments strings named segments to render (configured in the segments config)
|
||||||
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
-t, --theme strings themes to use (located in /themes/THEMENAME/)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,7 @@ hugo server [command] [flags]
|
||||||
--printMemoryUsage print memory usage to screen at intervals
|
--printMemoryUsage print memory usage to screen at intervals
|
||||||
--printPathWarnings print warnings on duplicate target paths etc.
|
--printPathWarnings print warnings on duplicate target paths etc.
|
||||||
--printUnusedTemplates print warnings on unused templates.
|
--printUnusedTemplates print warnings on unused templates.
|
||||||
|
--renderSegments strings named segments to render (configured in the segments config)
|
||||||
--renderStaticToDisk serve static files from disk and dynamic files from memory
|
--renderStaticToDisk serve static files from disk and dynamic files from memory
|
||||||
--templateMetrics display metrics about template executions
|
--templateMetrics display metrics about template executions
|
||||||
--templateMetricsHints calculate some improvement hints when combined with --templateMetrics
|
--templateMetricsHints calculate some improvement hints when combined with --templateMetrics
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue