diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/deploy.go | 1 | ||||
-rw-r--r-- | commands/hugo.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/commands/deploy.go b/commands/deploy.go index 14e7e1627..6f8eac357 100644 --- a/commands/deploy.go +++ b/commands/deploy.go @@ -68,6 +68,7 @@ func newDeployCmd() *deployCmd { cc.cmd.Flags().Bool("confirm", false, "ask for confirmation before making changes to the target") cc.cmd.Flags().Bool("dryRun", false, "dry run") cc.cmd.Flags().Bool("force", false, "force upload of all files") + cc.cmd.Flags().Bool("invalidateCDN", true, "invalidate the CDN cache via the CloudFrontDistributionID listed in the deployment target") cc.cmd.Flags().Int("maxDeletes", 256, "maximum # of files to delete, or -1 to disable") return cc diff --git a/commands/hugo.go b/commands/hugo.go index c6819b054..07f2b95a2 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -213,6 +213,7 @@ func initializeFlags(cmd *cobra.Command, cfg config.Provider) { "force", "gc", "i18n-warnings", + "invalidateCDN", "layoutDir", "logFile", "maxDeletes", |