OS Manuals

caddy-validate(8)

caddy-validate - Tests whether a configuration file is valid

Caddy(8) Caddy(8)

caddy-validate - Tests whether a configuration file is valid

caddy validate --config [--adapter ] [--envfile ] [flags]

Loads and provisions the provided config, but does not start running it. This reveals any errors with the configuration through the loading and provisioning stages.

If --envfile is specified, an environment file with environment variables in the KEY=VALUE format will be loaded into the Caddy process.

-a, --adapter="" Name of config adapter

-c, --config="" Input configuration file

--envfile=[] Environment file(s) to load

-h, --help[=false] help for validate

caddy(8)

29-Oct-2026 Auto generated by spf13/cobra

Oct 2026 Auto generated by spf13/cobra

caddy 2.11.7-r7 · enterprise-packages · ingested 2026-10-29