Serving locally

Default behavior

link-garden serve --repo-dir . --port 8000
  • Binds to localhost by default (127.0.0.1 unless overridden in config/flags).
  • Exports HTML to a temporary directory, then serves it.
  • Uses the configured/default serve scope (secure default: public).

Options you will use most

link-garden serve --repo-dir . --port 8080 --open-browser
link-garden serve --repo-dir . --export-mode unlisted
link-garden serve --repo-dir . --export-mode all --dangerous-all
link-garden serve --static-dir ./exports --port 8080

--static-dir skips temp export generation and serves an existing exported directory directly.

Remote bind safety guard

If you bind to a non-local address (for example 0.0.0.0) and require_allow_remote: true is enabled, you must pass --allow-remote.

link-garden serve --host 0.0.0.0 --port 8000 --allow-remote

Serving directly on public interfaces is risky. Prefer localhost + reverse proxy with auth and TLS.