CLI Reference
The InTunnel CLI is a powerful command-line tool for creating and managing tunnels.
Installation
Download the appropriate binary for your platform from GitHub Releases.
Linux/macOS
bash
# Download (example for Linux)
wget https://github.com/intechsolutionstn/intunnel-client/releases/latest/download/InTunnel-Linux
# Make executable
chmod +x InTunnel-Linux
# Optional: Move to PATH
sudo mv InTunnel-Linux /usr/local/bin/intunnelWindows
Download InTunnel-Windows.exe and run from Command Prompt or PowerShell.
Basic Usage
bash
# Simple connection
intunnel -token YOUR_TOKEN
# With custom local port
intunnel -token YOUR_TOKEN -port 8080
# With specific subdomain
intunnel -token YOUR_TOKEN -subdomain myapp -port 3000Command Line Options
| Flag | Description | Default |
|---|---|---|
-token | Your tunnel authentication token | Required |
-port | Local port to expose | From config |
-subdomain | Subdomain for your tunnel | From config |
-server | InTunnel server address | intunnel.cloud |
-domain | Domain to use (.cloud, .online, .tech) | .cloud |
-config | Path to config file | ./intunnel.ini |
-v | Show version | - |
-h | Show help | - |
Examples
Expose a Web Server
bash
# Expose local development server
intunnel -token abc123 -port 3000 -subdomain devserver
# Access at: https://devserver.intunnel.cloudExpose Multiple Services
Run multiple instances with different tokens:
bash
# Terminal 1: Frontend
intunnel -token TOKEN1 -port 3000 -subdomain frontend
# Terminal 2: API
intunnel -token TOKEN2 -port 8080 -subdomain apiUse Different Domain
bash
# Use .online domain instead of .cloud
intunnel -token abc123 -domain intunnel.online -subdomain myapp
# Access at: https://myapp.intunnel.onlineExit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Connection error |
| 2 | Invalid token |
| 3 | Configuration error |