1HUGO-NEW(1)Apr(2020)                                      HUGO-NEW(1)Apr(2020)
2
3
4
5Hugo 0.69.0 Hugo Manual
6
7

NAME

9       hugo-new - Create new content for your site
10
11
12

SYNOPSIS

14       hugo new [path] [flags]
15
16
17

DESCRIPTION

19       Create a new content file and automatically set the date and title.  It
20       will guess which kind of file to create based on the path provided.
21
22
23       You can also specify the kind with -k KIND.
24
25
26       If archetypes are provided in your theme or site, they will be used.
27
28
29       Ensure you run this within the root directory of your site.
30
31
32

OPTIONS

34       -b,  --baseURL=""       hostname  (and  path)   to   the   root,   e.g.
35       http://spf13.com/
36
37
38       -D, --buildDrafts[=false]      include content marked as draft
39
40
41       -E, --buildExpired[=false]      include expired content
42
43
44       -F,  --buildFuture[=false]      include content with publishdate in the
45       future
46
47
48       --cacheDir=""       filesystem  path  to  cache  directory.   Defaults:
49       $TMPDIR/hugo_cache/
50
51
52       --cleanDestinationDir[=false]       remove  files  from destination not
53       found in static directories
54
55
56       -c, --contentDir=""      filesystem path to content directory
57
58
59       -d, --destination=""      filesystem path to write files to
60
61
62       --disableKinds=[]      disable different kind of pages (home, RSS etc.)
63
64
65       --editor=""      edit new content with this editor, if provided
66
67
68       --enableGitInfo[=false]      add Git revision, date and author info  to
69       the pages
70
71
72       --forceSyncStatic[=false]      copy all files when static is changed.
73
74
75       --gc[=false]      enable to run some cleanup tasks (remove unused cache
76       files) after the build
77
78
79       -h, --help[=false]      help for new
80
81
82       --i18n-warnings[=false]      print missing translations
83
84
85       --ignoreCache[=false]      ignores the cache directory
86
87
88       -k, --kind=""      content type to create
89
90
91       -l, --layoutDir=""      filesystem path to layout directory
92
93
94       --minify[=false]      minify any supported  output  format  (HTML,  XML
95       etc.)
96
97
98       --noChmod[=false]      don't sync permission mode of files
99
100
101       --noTimes[=false]      don't sync modification time of files
102
103
104       --path-warnings[=false]       print  warnings on duplicate target paths
105       etc.
106
107
108       --templateMetrics[=false]      display metrics  about  template  execu‐
109       tions
110
111
112       --templateMetricsHints[=false]       calculate  some  improvement hints
113       when combined with --templateMetrics
114
115
116       -t, --theme=[]      themes to use (located in /themes/THEMENAME/)
117
118
119       --trace=""      write trace to file (not useful in general)
120
121
122

OPTIONS INHERITED FROM PARENT COMMANDS

124       --config=""      config file (default is path/config.yaml|json|toml)
125
126
127       --configDir="config"      config dir
128
129
130       --debug[=false]      debug output
131
132
133       -e, --environment=""      build environment
134
135
136       --ignoreVendor[=false]      ignores any _vendor directory
137
138
139       --log[=false]      enable Logging
140
141
142       --logFile=""      log File path (if set, logging enabled automatically)
143
144
145       --quiet[=false]      build in quiet mode
146
147
148       -s, --source=""      filesystem path to read files relative from
149
150
151       --themesDir=""      filesystem path to themes directory
152
153
154       -v, --verbose[=false]      verbose output
155
156
157       --verboseLog[=false]      verbose logging
158
159
160

SEE ALSO

162       hugo(1), hugo-new-site(1), hugo-new-theme(1)
163
164
165
166                                                          HUGO-NEW(1)Apr(2020)
Impressum