---
name: "caddy-validate"
section: "8"
platform: "linux"
package: "caddy"
version: "2.6.2-12+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/caddy-validate"
---

# caddy-validate(8)

Tests whether a configuration file is valid

## NAME

caddy-validate - Tests whether a configuration file is valid

## SYNOPSIS

**caddy validate \[flags\]**

## 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.

## OPTIONS

**--adapter**=""\
 	Name of config adapter

**--config**=""\
 	Input configuration file

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

## SEE ALSO

**[caddy(8)](/caddy/8.md)**

## HISTORY

10-Aug-2026 Auto generated by spf13/cobra
