curl -s http://localhost:2019/config/ | jq

Category: Web Servers & Proxies

curl -s http://localhost:2019/config/ | jq

Dump Caddy's live JSON config from the admin API

The admin API on localhost:2019 exposes the running configuration, and /config/ returns it as JSON, which jq pretty-prints for inspection. Useful to see the effective config after Caddyfile adaptation. Requires a Caddy started with caddy run, which enables the admin endpoint.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.