hugo_deploy.md (1848B)
1 ---
2 title: "hugo deploy"
3 slug: hugo_deploy
4 url: /commands/hugo_deploy/
5 ---
6 ## hugo deploy
7
8 Deploy your site to a Cloud provider.
9
10 ### Synopsis
11
12 Deploy your site to a Cloud provider.
13
14 See https://gohugo.io/hosting-and-deployment/hugo-deploy/ for detailed
15 documentation.
16
17
18 ```
19 hugo deploy [flags]
20 ```
21
22 ### Options
23
24 ```
25 --confirm ask for confirmation before making changes to the target
26 --dryRun dry run
27 --force force upload of all files
28 -h, --help help for deploy
29 --invalidateCDN invalidate the CDN cache listed in the deployment target (default true)
30 --maxDeletes int maximum # of files to delete, or -1 to disable (default 256)
31 --target string target deployment from deployments section in config file; defaults to the first one
32 ```
33
34 ### Options inherited from parent commands
35
36 ```
37 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
38 --config string config file (default is path/config.yaml|json|toml)
39 --configDir string config dir (default "config")
40 --debug debug output
41 -e, --environment string build environment
42 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
43 --log enable Logging
44 --logFile string log File path (if set, logging enabled automatically)
45 --quiet build in quiet mode
46 -s, --source string filesystem path to read files relative from
47 --themesDir string filesystem path to themes directory
48 -v, --verbose verbose output
49 --verboseLog verbose logging
50 ```
51
52 ### SEE ALSO
53
54 * [hugo](/commands/hugo/) - hugo builds your site
55