Scroll to navigation

CADDY-START(1) General Commands Manual CADDY-START(1)

NAME

caddy-start - Starts the Caddy process in the background and then returns

SYNOPSIS

caddy start [--config <path> [--adapter <name>]] [--envfile <path>] [--watch] [--pidfile <file>]

DESCRIPTION

Starts the Caddy process, optionally bootstrapped with an initial config file. This command unblocks after the server starts running or fails to run.

If --envfile is specified, an environment file with environment variables in the KEY=VALUE format will be loaded into the Caddy process.

On Windows, the spawned child process will remain attached to the terminal, so closing the window will forcefully stop Caddy; to avoid forgetting this, try using 'caddy run' instead to keep it in the foreground.

OPTIONS

--adapter

Name of config adapter to apply

--config

Configuration file

--envfile

Environment file to load

--pidfile

Path of file to which to write process ID

--watch

Reload changed config file automatically

SEE ALSO

caddy-adapt(1), caddy-caddy(1), caddy-environ(1), caddy-file-server(1), caddy-fmt(1), caddy-hash-password(1), caddy-help(1), caddy-list-modules(1), caddy-man(1), caddy-reload(1), caddy-reverse-proxy(1), caddy-run(1), caddy-stop(1), caddy-trust(1), caddy-untrust(1), caddy-validate(1), caddy-version(1), caddy(1)

DOCUMENTATION

Full documentation is available at: https://caddyserver.com/docs/

VERSION

2.4.5-1

BUGS

Report Bugs to: https://github.com/caddyserver/caddy

COPYRIGHT

(c) Matthew Holt and The Caddy Authors

September 2021