2019-10-21 04:22:28 -04:00
|
|
|
---
|
|
|
|
title: "hugo deploy"
|
|
|
|
slug: hugo_deploy
|
|
|
|
url: /commands/hugo_deploy/
|
|
|
|
---
|
|
|
|
## hugo deploy
|
|
|
|
|
|
|
|
Deploy your site to a Cloud provider.
|
|
|
|
|
|
|
|
### Synopsis
|
|
|
|
|
|
|
|
Deploy your site to a Cloud provider.
|
|
|
|
|
|
|
|
See https://gohugo.io/hosting-and-deployment/hugo-deploy/ for detailed
|
|
|
|
documentation.
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
hugo deploy [flags]
|
|
|
|
```
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
```
|
2022-05-08 10:57:29 -04:00
|
|
|
--clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
|
2022-11-17 10:19:22 -05:00
|
|
|
--confirm ask for confirmation before making changes to the target
|
|
|
|
--dryRun dry run
|
2020-10-06 10:22:20 -04:00
|
|
|
-e, --environment string build environment
|
2022-11-17 10:19:22 -05:00
|
|
|
--force force upload of all files
|
|
|
|
-h, --help help for deploy
|
2020-10-06 10:22:20 -04:00
|
|
|
--ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
|
2022-11-17 10:19:22 -05:00
|
|
|
--invalidateCDN invalidate the CDN cache listed in the deployment target (default true)
|
|
|
|
--maxDeletes int maximum # of files to delete, or -1 to disable (default 256)
|
2023-03-04 04:18:43 -05:00
|
|
|
--workers int number of workers to transfer files. (default 10)
|
2020-10-06 10:22:20 -04:00
|
|
|
-s, --source string filesystem path to read files relative from
|
2022-11-17 10:19:22 -05:00
|
|
|
--target string target deployment from deployments section in config file; defaults to the first one
|
2020-10-06 10:22:20 -04:00
|
|
|
--themesDir string filesystem path to themes directory
|
2022-11-17 10:19:22 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
### Options inherited from parent commands
|
|
|
|
|
|
|
|
```
|
2023-01-17 06:52:53 -05:00
|
|
|
--config string config file (default is hugo.yaml|json|toml)
|
2022-11-17 10:19:22 -05:00
|
|
|
--configDir string config dir (default "config")
|
|
|
|
--debug debug output
|
|
|
|
--log enable Logging
|
|
|
|
--logFile string log File path (if set, logging enabled automatically)
|
|
|
|
--quiet build in quiet mode
|
|
|
|
-v, --verbose verbose output
|
|
|
|
--verboseLog verbose logging
|
2019-10-21 04:22:28 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
### SEE ALSO
|
|
|
|
|
|
|
|
* [hugo](/commands/hugo/) - hugo builds your site
|
|
|
|
|