1Caddy(8) Caddy(8)
2
3
4
6 caddy-fmt - Formats a Caddyfile
7
8
9
11 caddy fmt [flags]
12
13
14
16 Formats the Caddyfile by adding proper indentation and spaces to im‐
17 prove human readability. It prints the result to stdout.
18
19
20 If --overwrite is specified, the output will be written to the config
21 file directly instead of printing it.
22
23
24 If --diff is specified, the output will be compared against the input,
25 and lines will be prefixed with '-' and '+' where they differ. Note
26 that unchanged lines are prefixed with two spaces for alignment, and
27 that this is not a valid patch format.
28
29
30 If you wish you use stdin instead of a regular file, use - as the path.
31 When reading from stdin, the --overwrite flag has no effect: the result
32 is always printed to stdout.
33
34
35
37 -d, --diff[=false] Print the differences between the input file
38 and the formatted output
39
40
41 -h, --help[=false] help for fmt
42
43
44 -w, --overwrite[=false] Overwrite the input file with the results
45
46
47
49 caddy(8)
50
51
52
54 30-Oct-2023 Auto generated by spf13/cobra
55
56
57
58Auto generated by spf13/cobra Oct 2023 Caddy(8)