Caddy(8)

NAME
caddy-json-schema - Generate JSON schema for Caddy JSON api

SYNOPSIS
caddy json-schema [--output ] [--indent ] [--vscode] [--no-cache] [flags]

DESCRIPTION
JSON schema generator for caddy JSON configuration.

If --output is set, the schema is generated to the specified file. By default it is generated to caddy_schema.json in the current directory.

If --indent is set, the generated JSON files with be indented by n spaces where n is the value of '--indent'.

If --no-cache is set, local documentation cache (if present) will be discard and the latest API docs will be retrieved from caddyserver.com.

If --vscode is set, schema and vscode config is generated into a '.vscode' directory in the current working directory. This disregards '--output'. Other ways of integrating JSON schema in VSCode can be found at https://code.visualstudio.com/docs/languages/json#_mapping-in-the-user-settings

OPTIONS
-h, --help[=false]
    help for json-schema

--indent=2
    Number of spaces to indent the generated JSON with

--no-cache[=false]
    Discard local cache and fetch latest API docs

--output="./caddy_schema.json"
    The file to write the generated schema

--vscode[=false]
    Generate VSCode configuration

SEE ALSO
caddy(8)

HISTORY
23-Jun-2026 Auto generated by spf13/cobra