How to start a tunnel from the YakTunnel CLI
A reserved URL does nothing until a connector forwards its traffic to your machine. One command connects the endpoint to a local port, and the endpoint shows Online while it runs.
Before you start
- The CLI signed in (see Connect the CLI to your account)
- An app running locally, for example on port 3000
# your app is already listening on port 3000yaktunnel http 3000 --name checkout-preview --project website-previewhttps://checkout-preview-… → http://127.0.0.1:3000 (team)Local inspector: http://127.0.0.1:53817/#…^CSteps
Copy the endpoint's command
In Projects, find the endpoint and copy the command on its card, for example:
yaktunnel http 3000 --name checkout-preview --project website-previewChange
3000to the port your app listens on.Run it in your terminal
Run the command. When the tunnel connects, the CLI prints a line such as
https://checkout-preview-… → http://127.0.0.1:3000 (team): the URL, the local target and the access mode. If no endpoint has that name yet, the command reserves it.yaktunnel http 3000 --name checkout-preview --project website-previewhttps://checkout-preview-… → http://127.0.0.1:3000 (team)Local inspector: http://127.0.0.1:53817/#…Confirm it's online
In Projects, the endpoint shows Online and Connector with its version. Open the URL to reach your app.
Stop the tunnel
Press Ctrl+C in the terminal, or run
yaktunnel stop. The endpoint goes Offline; its URL stays reserved.yaktunnel stopstopping
Next steps
Updated 2026-11-06
expose localhost yaktunnel http share local app localhost tunnel