Debian Codegraph @

docs/content/en/commands/hugo_mod_tidy.md

raw
1 ---
2 title: "hugo mod tidy"
3 slug: hugo_mod_tidy
4 url: /commands/hugo_mod_tidy/
5 ---
6 ## hugo mod tidy
7
8 Remove unused entries in go.mod and go.sum
9
10 ```
11 hugo mod tidy [flags] [args]
12 ```
13
14 ### Options
15
16 ```
17 -b, --baseURL string hostname (and path) to the root, e.g. https://spf13.com/
18 --cacheDir string filesystem path to cache directory
19 -c, --contentDir string filesystem path to content directory
20 -h, --help help for tidy
21 --renderSegments strings named segments to render (configured in the segments config)
22 -t, --theme strings themes to use (located in /themes/THEMENAME/)
23 ```
24
25 ### Options inherited from parent commands
26
27 ```
28 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
29 --config string config file (default is hugo.yaml|json|toml)
30 --configDir string config dir (default "config")
31 -d, --destination string filesystem path to write files to
32 -e, --environment string build environment
33 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
34 --logLevel string log level (debug|info|warn|error)
35 --noBuildLock don't create .hugo_build.lock file
36 --quiet build in quiet mode
37 -M, --renderToMemory render to memory (mostly useful when running the server)
38 -s, --source string filesystem path to read files relative from
39 --themesDir string filesystem path to themes directory
40 ```
41
42 ### SEE ALSO
43
44 * [hugo mod](/commands/hugo_mod/) - Manage modules