HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

xcaddy — The custom build tool for the Caddy Web Server. More information: <https://github.com/caddyserver/xc

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandbuildclicustomtoolforxcaddy

Problem

How to use the xcaddy command: The custom build tool for the Caddy Web Server. More information: <https://github.com/caddyserver/xcaddy#command-usage>.

Solution

xcaddy — The custom build tool for the Caddy Web Server. More information: <https://github.com/caddyserver/xcaddy#command-usage>.

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}}

Code Snippets

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

Context

tldr-pages: common/xcaddy

Revisions (0)

No revisions yet.