.nh .TH "Caddy" "8" "Nov 2026" "Auto generated by spf13/cobra" "" .SH NAME caddy-validate - Tests whether a configuration file is valid .SH SYNOPSIS \fBcaddy validate --config [--adapter ] [--envfile ] [flags]\fP .SH DESCRIPTION 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. .PP If --envfile is specified, an environment file with environment variables in the KEY=VALUE format will be loaded into the Caddy process. .SH OPTIONS \fB-a\fP, \fB--adapter\fP="" Name of config adapter .PP \fB-c\fP, \fB--config\fP="" Input configuration file .PP \fB--envfile\fP=[] Environment file(s) to load .PP \fB-h\fP, \fB--help\fP[=false] help for validate .SH SEE ALSO \fBcaddy(8)\fP .SH HISTORY 1-Nov-2026 Auto generated by spf13/cobra