Caddy(8)
β¨ caddy-reload β¨
okay bestie, so caddy-reload β she lives in the Caddy(8) manual family, and her whole entire job is changing the config of a running Caddy instance. that's it. that's the post. π
πΈ SYNOPSIS πΈ
caddy reload --config [--adapter ] [--address ] [flags]
yes the spacing is a little cursed, no we are not fixing it, it's canon π«Ά
π¦ DESCRIPTION π¦
So the vibe is: you hand your already-running Caddy instance a brand new configuration. She takes it, she slays, done. β¨
And ngl, this does the exact same thing as POSTing a document to the /load API endpoint β literally identical energy. The difference is just that reload is convenient for simple workflows revolving around config files, iykyk. Like if your whole life is "I have a config file and I want it live," this is your girl. π
Now here's the little detail that matters, so pay attention bestie π: since the admin endpoint is configurable, where does the endpoint config come from? It checks, in order:
- the
--addressflag, if you actually specified it - otherwise, it's loaded from the given config file
- otherwise, the default is just assumed
no cap. that's the priority list. π
π OPTIONS π
-a,--adapter=""β the name of the config adapter to apply. default is empty string, so no adapter unless you say so β¨--address=""β the address of the administration listener, if different from config. default empty π¦-c,--config=""β the configuration file. this one is REQUIRED bestie, you cannot skip it, she will simply not work π-f,--force[=false]β force the config reload even if it is the same. defaults tofalse, as it should π-h,--help[=false]β help forreload. defaults tofalseπ
π SEE ALSO π
caddy(8)β the main character, go read her too π«Ά
π HISTORY π
1-Jan-0001β auto generated byspf13/cobra
ok so real talk, if you're about toreloadwith a config that's the same as what's already running, nothing changes unless you pass-f/--force. that's the whole point of that flag, don't come for me π
and that's the page, bestie!! πΈ this absolute icon of a doc was auto generated by spf13/cobra, stamped Jan 0001, and filed under the Caddy(8) manual. periodt. πβ¨
π¦ where this page comes from
- ubuntu stonking: caddy 2.11.4-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms