hugo_new_site.md (1575B)
1 ---
2 title: "hugo new site"
3 slug: hugo_new_site
4 url: /commands/hugo_new_site/
5 ---
6 ## hugo new site
7
8 Create a new site (skeleton)
9
10 ### Synopsis
11
12 Create a new site in the provided directory.
13 The new site will have the correct structure, but no content or theme yet.
14 Use `hugo new [contentPath]` to create new content.
15
16 ```
17 hugo new site [path] [flags]
18 ```
19
20 ### Options
21
22 ```
23 --force init inside non-empty directory
24 -f, --format string config file format (default "toml")
25 -h, --help help for site
26 ```
27
28 ### Options inherited from parent commands
29
30 ```
31 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
32 --config string config file (default is path/config.yaml|json|toml)
33 --configDir string config dir (default "config")
34 --debug debug output
35 -e, --environment string build environment
36 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
37 --log enable Logging
38 --logFile string log File path (if set, logging enabled automatically)
39 --quiet build in quiet mode
40 -s, --source string filesystem path to read files relative from
41 --themesDir string filesystem path to themes directory
42 -v, --verbose verbose output
43 --verboseLog verbose logging
44 ```
45
46 ### SEE ALSO
47
48 * [hugo new](/commands/hugo_new/) - Create new content for your site
49