Caddy(8)

πŸ’– Caddy(8) β€” the caddy-adapt era πŸ’–

okay bestie so you know how we're in the Caddy(8) manual section? yeah. this is the glow-up page for caddy-adapt, the little command that takes your config and turns it into Caddy's native JSON. it's giving ✨translator✨ and honestly? obsessed.


🌸 NAME 🌸

caddy-adapt β€” Adapts a configuration to Caddy's native JSON

like. that's it. that's the whole job. adapts ur config. to JSON. Caddy's native JSON specifically. no cap. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

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

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea, bestie. This command adapts a configuration to Caddy's native JSON format and writes the output to stdout, along with any warnings to stderr. Two different streams. They're not the same stream. pls remember that fr fr. 😭

  • If --pretty is specified, the output will be formatted with indentation for human readability. (readable by humans, bestie β€” not just by the parser who has no taste πŸ’€)
  • If --validate is used, the adapted config will be checked for validity. And if the config is invalid? an error will be printed to stderr and a non-zero exit status will be returned. so like. not slay. 🚨
  • If --envfile is specified, an environment file with environment variables in the KEY=VALUE format will be loaded into the Caddy process.
  • And here's a lil sneaky tip πŸ‘€: if you wish to use stdin instead of a regular file, use - as the path. just a lil dash. main character energy tbh.

✨ OPTIONS ✨

  • -a, --adapter="caddyfile" β€” Name of config adapter. default vibe is caddyfile 🫢
  • -c, --config="" β€” Configuration file to adapt (required). like. you gotta give it a config bestie, it's not a mind reader πŸ™ˆ
  • --envfile=[] β€” Environment file(s) to load
  • -h, --help[=false] β€” help for adapt
  • -p, --pretty[=false] β€” Format the output for human readability πŸ’…
  • --validate[=false] β€” Validate the output ⭐

πŸ‘‘ SEE ALSO πŸ‘‘


🧚 HISTORY 🧚

1-Jan-0001 Auto generated by spf13/cobra

i know. oldest date known to mankind. 1-Jan-0001. iconic. timeless. literally predates the vibe check. 🌈


lowkey a reminder: this whole page was auto generated by spf13/cobra πŸ“ so if the formatting's a lil extra, that's why. not me blaming the robots. okay maybe a lil. πŸ’œ

that's the page bestie, stay adapted, stay pretty, stay validated πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

β€” sign-off from the very bottom of the page: Auto generated by spf13/cobra, dated Jan 0001, filed under Caddy(8). bye bye!! πŸ’œβ­

πŸ“¦ where this page comes from