table of contents
CADDY-FMT(1) | General Commands Manual | CADDY-FMT(1) |
NAME¶
caddy-fmt - Formats a Caddyfile
SYNOPSIS¶
caddy fmt [--overwrite] [<path>]
DESCRIPTION¶
Formats the Caddyfile by adding proper indentation and spaces to improve human readability. It prints the result to stdout.
If --overwrite is specified, the output will be written to the config file directly instead of printing it.
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.
OPTIONS¶
--overwrite
SEE ALSO¶
caddy-adapt(1), caddy-caddy(1), caddy-environ(1), caddy-file-server(1), caddy-hash-password(1), caddy-help(1), caddy-list-modules(1), caddy-man(1), caddy-reload(1), caddy-reverse-proxy(1), caddy-run(1), caddy-start(1), caddy-stop(1), caddy-trust(1), caddy-untrust(1), caddy-validate(1), caddy-version(1), caddy(1)
DOCUMENTATION¶
Full documentation is available at: https://caddyserver.com/docs/
VERSION¶
2.4.5-1
BUGS¶
Report Bugs to: https://github.com/caddyserver/caddy
COPYRIGHT¶
(c) Matthew Holt and The Caddy Authors
September 2021 |