1Caddy(8) Caddy(8)
2
3
4
6 caddy-adapt - Adapts a configuration to Caddy's native JSON
7
8
9
11 caddy adapt [flags]
12
13
14
16 Adapts a configuration to Caddy's native JSON format and writes the
17 output to stdout, along with any warnings to stderr.
18
19
20 If --pretty is specified, the output will be formatted with indentation
21 for human readability.
22
23
24 If --validate is used, the adapted config will be checked for validity.
25 If the config is invalid, an error will be printed to stderr and a non-
26 zero exit status will be returned.
27
28
29 If --envfile is specified, an environment file with environment vari‐
30 ables in the KEY=VALUE format will be loaded into the Caddy process.
31
32
33
35 -a, --adapter="caddyfile" Name of config adapter
36
37
38 -c, --config="" Configuration file to adapt (required)
39
40
41 --envfile=[] Environment file(s) to load
42
43
44 -h, --help[=false] help for adapt
45
46
47 -p, --pretty[=false] Format the output for human readability
48
49
50 --validate[=false] Validate the output
51
52
53
55 caddy(8)
56
57
58
60 30-Oct-2023 Auto generated by spf13/cobra
61
62
63
64Auto generated by spf13/cobra Oct 2023 Caddy(8)