Load a Caddyfile and pick an entry, or create a new one.
Insert into the global options block (the address-less { } at the top).
{ }
caddy fmt