2025-03-14 21:59:59 -06:00
|
|
|
# xcaddy
|
|
|
|
|
|
|
|
|
|
> The custom build tool for the Caddy Web Server.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://github.com/caddyserver/xcaddy#command-usage>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Build Caddy server from source:
|
|
|
|
|
|
|
|
|
|
`xcaddy build`
|
|
|
|
|
|
|
|
|
|
- Build Caddy server with a specific version (defaults to latest):
|
|
|
|
|
|
|
|
|
|
`xcaddy build {{version}}`
|
|
|
|
|
|
|
|
|
|
- Build Caddy with a specific module:
|
|
|
|
|
|
|
|
|
|
`xcaddy build --with {{module_name}}`
|
|
|
|
|
|
|
|
|
|
- Build Caddy and output to a specific file:
|
|
|
|
|
|
|
|
|
|
`xcaddy build --output {{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Build and run Caddy for a development plugin in the current directory:
|
|
|
|
|
|
|
|
|
|
`xcaddy run`
|
|
|
|
|
|
|
|
|
|
- Build and run Caddy for a development plugin using a specific Caddy config:
|
|
|
|
|
|
|
|
|
|
`xcaddy run --config {{path/to/file}}`
|