Skip to content

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/intunnel

Windows

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 3000

Command Line Options

FlagDescriptionDefault
-tokenYour tunnel authentication tokenRequired
-portLocal port to exposeFrom config
-subdomainSubdomain for your tunnelFrom config
-serverInTunnel server addressintunnel.cloud
-domainDomain to use (.cloud, .online, .tech).cloud
-configPath to config file./intunnel.ini
-vShow version-
-hShow help-

Examples

Expose a Web Server

bash
# Expose local development server
intunnel -token abc123 -port 3000 -subdomain devserver
# Access at: https://devserver.intunnel.cloud

Expose 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 api

Use Different Domain

bash
# Use .online domain instead of .cloud
intunnel -token abc123 -domain intunnel.online -subdomain myapp
# Access at: https://myapp.intunnel.online

Exit Codes

CodeMeaning
0Success
1Connection error
2Invalid token
3Configuration error

Next Steps

Released under the MIT License.