| 1 |
--- |
| 2 |
title: "hugo deploy" |
| 3 |
slug: hugo_deploy |
| 4 |
url: /commands/hugo_deploy/ |
| 5 |
--- |
| 6 |
## hugo deploy |
| 7 |
|
| 8 |
Deploy your project to a cloud provider |
| 9 |
|
| 10 |
### Synopsis |
| 11 |
|
| 12 |
Deploy your project 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] [args] |
| 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 |
--workers int number of workers to transfer files. defaults to 10 (default 10) |
| 33 |
``` |
| 34 |
|
| 35 |
### Options inherited from parent commands |
| 36 |
|
| 37 |
``` |
| 38 |
--clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00 |
| 39 |
--config string config file (default is hugo.yaml|json|toml) |
| 40 |
--configDir string config dir (default "config") |
| 41 |
-d, --destination string filesystem path to write files to |
| 42 |
-e, --environment string build environment |
| 43 |
--ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern |
| 44 |
--logLevel string log level (debug|info|warn|error) |
| 45 |
--noBuildLock don't create .hugo_build.lock file |
| 46 |
--quiet build in quiet mode |
| 47 |
-M, --renderToMemory render to memory (mostly useful when running the server) |
| 48 |
-s, --source string filesystem path to read files relative from |
| 49 |
--themesDir string filesystem path to themes directory |
| 50 |
``` |
| 51 |
|
| 52 |
### SEE ALSO |
| 53 |
|
| 54 |
* [hugo](/commands/hugo/) - Build your project |