Skip to content

Sharing sites publicly

Sometimes you need to show a local site to someone who isn’t on your machine — a client, a teammate, a webhook from a third-party service. Butler can put a local site on a public URL with a single command.

Terminal window
butler share my-app

Butler opens a tunnel to my-app.test and prints a public URL. Anyone with that URL reaches your local site until you stop sharing. Omit the name to share the site in the current directory.

Stop sharing when you’re done:

Terminal window
butler unshare my-app

butler share is provider-neutral — it can tunnel through Cloudflare Tunnel (cloudflared) or Expose, whichever you have configured. For direct, low-level control over the Expose client, Butler passes commands straight through:

Terminal window
butler expose ...

Use butler share/butler unshare for the common case; reach for butler expose only when you need Expose-specific options.