Skip to main content

Overview

The Docket tunnel lets you run tests against your local development environment without exposing it to the public internet. Only your authenticated Docket account can access the proxied services.

Install the CLI

Download and install the Docket CLI from our official distribution:
curl -fsSL https://api.docketqa.com/tunnel/install | bash
Add the CLI to your PATH:
export PATH="$HOME/.docket/bin:$PATH"
Tip: Add the export line to your shell profile (~/.bashrc, ~/.zshrc, etc.) to make it permanent.

Authenticate

Link the CLI to your Docket account. This account will be the only one with access to services exposed over the tunnel:
docket auth

Start the Tunnel

Start the tunnel to automatically proxy traffic to your local services:
docket start
While the tunnel is running:
  • Your local services are accessible from within your authenticated Docket account
  • Resources are not accessible from the public internet or any other Docket account
  • Press Ctrl+C to stop the tunnel