caddy fmt --overwrite /etc/caddy/Caddyfile

Category: Self-Hosting

caddy fmt --overwrite /etc/caddy/Caddyfile

Auto-format the Caddyfile to canonical style in-place

Reformats the Caddyfile to Caddy's canonical style in-place — like a code formatter but for your server config.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.