Skip to content

Commit

Permalink
docs(cdn): add examples for compute cdn flush command (#1448)
Browse files Browse the repository at this point in the history
Signed-off-by: sharan <sharanrdude@gmail.com>
Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
  • Loading branch information
rustiever and andrewsomething committed Oct 24, 2023
1 parent 1df456e commit 92df950
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion commands/cdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ Currently, you can only update the custom domain and its certificate ID with thi
This is useful when you need to ensure that files which were recently changed on the origin server are immediately available via the CDN.
To purge specific files, you can use the `+"`"+`--files`+"`"+` flag and supply a path. The path may be for a single file or may contain a wildcard (`+"`"+`*`+"`"+`) to recursively purge all files under a directory. When only a wildcard is provided, or no path is provided, all cached files will be purged.`, Writer,
To purge specific files, you can use the `+"`"+`--files`+"`"+` flag and supply a path. The path may be for a single file or may contain a wildcard (`+"`"+`*`+"`"+`) to recursively purge all files under a directory. When only a wildcard is provided, or no path is provided, all cached files will be purged.
Examples:
doctl compute cdn flush <cdn-id> --files /path/to/assets/*
doctl compute cdn flush <cdn-id> --files "/path/to/file.one, /path/to/file.two"
doctl compute cdn flush <cdn-id> --files /path/to/file.one --files /path/to/file.two
doctl compute cdn flush <cdn-id> --files * `, Writer,
aliasOpt("fc"))
AddStringSliceFlag(cmdCDNFlushCache, doctl.ArgCDNFiles, "", []string{"*"}, "cdn files")

Expand Down

0 comments on commit 92df950

Please sign in to comment.