LinuxCommandLibrary

xcaddy

Build custom Caddy with modules

TLDR

Build Caddy with modules

$ xcaddy build --with [github.com/module]
copy
Build specific version
$ xcaddy build [v2.7.0] --with [github.com/module]
copy
Run with module
$ xcaddy run --with [github.com/module]
copy
Multiple modules
$ xcaddy build --with [mod1] --with [mod2]
copy

SYNOPSIS

xcaddy [build|run] [version] [--with module] [options]

DESCRIPTION

xcaddy is a build tool for creating custom Caddy web server binaries with additional modules compiled in. It uses the Go toolchain to compile Caddy from source with the specified plugins included, producing a single binary with all desired functionality.
The build command compiles a specific Caddy version with one or more modules, while the run command temporarily builds and runs Caddy with the specified modules for development and testing without producing a permanent binary. Multiple modules can be included using repeated --with flags.

PARAMETERS

build

Build Caddy.
run
Run Caddy.
--with MODULE
Include module.
--output FILE
Output path.
--replace REPL
Go replace directive.

CAVEATS

Go required. Build time varies. For custom Caddy.

HISTORY

xcaddy was created by the Caddy project for building custom Caddy binaries with plugins.

SEE ALSO

caddy(1), go(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community