.nh .TH "Caddy" "8" "Apr 2023" "Auto generated by spf13/cobra" "" .SH NAME .PP caddy-fmt - Formats a Caddyfile .SH SYNOPSIS .PP \fBcaddy fmt [flags]\fP .SH DESCRIPTION .PP Formats the Caddyfile by adding proper indentation and spaces to improve human readability. It prints the result to stdout. .PP If --overwrite is specified, the output will be written to the config file directly instead of printing it. .PP If --diff is specified, the output will be compared against the input, and lines will be prefixed with '-' and '+' where they differ. Note that unchanged lines are prefixed with two spaces for alignment, and that this is not a valid patch format. .PP If you wish you use stdin instead of a regular file, use - as the path. When reading from stdin, the --overwrite flag has no effect: the result is always printed to stdout. .SH OPTIONS .PP \fB--diff\fP[=false] Print the differences between the input file and the formatted output .PP \fB-h\fP, \fB--help\fP[=false] help for fmt .PP \fB--overwrite\fP[=false] Overwrite the input file with the results .SH SEE ALSO .PP \fBcaddy(8)\fP .SH HISTORY .PP 17-Apr-2023 Auto generated by spf13/cobra