StackPanel

stack caddy add

Link this project's generated Caddy site(s) into the global proxy

stack caddy add

Link this project's generated Caddy site config(s) into the global Caddy.

Per-site Caddyfile snippets are generated functionally by Nix into .stack/gen/caddy/ on devshell entry (from your stackpanel.apps.<app>.domain and caddy site configuration). This command does NOT generate config — it only creates symlinks from the shared ~/.config/caddy/sites.d/ to the generated files so the global Caddy instance serves them.

With no argument, links all of the project's generated sites, skipping any that another checkout of the project (e.g. a git worktree) already linked: Caddy rejects a domain defined twice. Pass a domain to link a single site, taking it over from any other checkout. Links whose target no longer exists (removed sites, deleted worktrees) are pruned.

Examples: stack caddy add stack caddy add web.myapp.localhost

Usage

stack caddy add [domain]

Global Flags

These flags are inherited from parent commands.

FlagTypeDefaultDescription
--daemon, -dboolfalseRun in daemon mode (no TUI, for background processes)
--no-colorboolfalseDisable color output
--no-tuiboolfalseDisable interactive TUI mode
--verbose, -vboolfalseEnable verbose output

On this page