CLI Flags Guide
Complete reference for InstaTunnel CLI commands, including MCP setup flow, plan requirements, and production-safe usage patterns.
Install, Verify, Update
npm install -g instatunnel
instatunnel --version
npm install -g instatunnel@latest
npm view instatunnel version
MCP User Flow (Pro/Business)
- Run
instatunnel auth login -e you@example.com. - Verify email and copy API key from the verification success page.
- Save key:
instatunnel auth set-key "it_your_api_key". - Start MCP tunnel:
instatunnel 8787 --mcp --transport v2. - Use the generated URL in your MCP client/server configuration.
Optional staged security header: set INSTATUNNEL_MCP_TOKEN to send X-InstaTunnel-MCP-Token.
Flags Reference
| Flag | Purpose | Example |
|---|---|---|
--subdomain, -s | Custom subdomain | instatunnel 3000 -s myapp |
--domain, -d | Custom domain (Pro/Business) | instatunnel 3000 -d app.example.com |
--region, -r | Region (current deployment supports only us) | instatunnel 3000 -r us |
--password | Password-protect tunnel | instatunnel 3000 --password demo123 |
--auth | Basic auth | instatunnel 3000 --auth user:pass |
--qr | Show QR code | instatunnel 3000 --qr |
--mcp | MCP mode (Pro/Business) | instatunnel 8787 --mcp |
--transport | Transport version (v1/v2) | instatunnel 8787 --mcp --transport v2 |
--list | List tunnels (auth) | instatunnel --list |
--kill | Stop by subdomain (auth) | instatunnel --kill myapp |
--logs | Poll request logs (Pro/Business) | instatunnel --logs |
--stats | Real 30-day usage summary (auth) | instatunnel --stats |
--react / --next / --laravel | Framework shortcuts | instatunnel --react |
--share | Share text templates | instatunnel --share |
Real-World Usage Patterns
# Webhook testing
instatunnel 3000 -s stripe-webhook --auth qa:pass123
# Frontend + API in parallel terminals
instatunnel 3000 -s frontend-demo
instatunnel 8000 -s api-demo
# MCP endpoint with streaming
instatunnel auth set-key "it_your_api_key"
instatunnel 8787 --mcp --transport v2 -s mcp-demo
Release Notes
Latest release: 1.1.9
- Real
--statsfrom analytics API. - Real
--logsrequest-log polling. --regionfail-fast validation for unsupported regions.- Updated MCP and existing-user API key docs.
Full changelog on GitHub: CHANGELOG.md