YakTunnel Docs

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
~/checkout — yaktunnel
# 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/#…^C
What a session looks like. Your URL and inspector port will differ.

Steps

  1. Copy the endpoint's command

    In Projects, find the endpoint and copy the command on its card, for example:

    Terminal
    yaktunnel http 3000 --name checkout-preview --project website-preview

    Change 3000 to the port your app listens on.

  2. 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.

    ~/checkout
    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/#…
  3. Confirm it's online

    In Projects, the endpoint shows Online and Connector with its version. Open the URL to reach your app.

  4. Stop the tunnel

    Press Ctrl+C in the terminal, or run yaktunnel stop. The endpoint goes Offline; its URL stays reserved.

    another terminal
    yaktunnel stopstopping
ResultThe terminal prints the public URL, and the endpoint shows Online with its connector version on Projects.

Next steps

Updated 2026-11-06