v3.1.1 โ€ข Free & Open Source โ€ข CLI Tool

Share Your Local Dev Servers
Worldwide in Seconds

DevTunnel-CLI is a zero-configuration CLI tool that creates public URLs for your local development servers. Supports multiple ports.

0
Config Required
4s
Setup Time
โ€”
Weekly Downloads

Works with any framework, any backend, and any port. No setup required.

DevTunnel-CLI v3.0.44
Terminal
Step 1: Install (one-time)
$npm install -g devtunnel-cli
โ†’ Installing globally...
Step 2: Go to your project folder
$cd my-react-app(or your Laravel/HTML/XAMPP folder)
Step 3: Have your app running (Terminal 1)
$npm run devorphp artisan serveor XAMPP/Live Server
โ†’ Node: npm run dev / npm start
โ†’ Laravel: php artisan serve (port 8000)
โ†’ HTML: optional โ€” DevTunnel-CLI can start a built-in server
โ†’ PHP/XAMPP: have Apache running (port 80)
Step 4: Run DevTunnel-CLI (Terminal 2 - same directory)
$devtunnel-cli
โ†’ Detecting project...
โ†’ Found: my-react-app
โ†’ Detecting port...
โ†’ Found running server on port 3000
โ†’ Starting proxy server...
โ†’ Connecting to Cloudflare...
๐ŸŒPUBLIC URL
https://your-app.serviceprovider.com
Share this URL with anyone, anywhere!

What is DevTunnel-CLI?

DevTunnel-CLI is a command-line tool that creates secure public URLs for your local development servers, making it easy to share your work with teammates, clients, or test on mobile devices.

๐ŸŽฏ

The Problem

Your dev server runs on localhost:3000, which only you can access. Sharing with teammates or testing on mobile devices requires complex setup or deployment.

โœจ

The Solution

DevTunnel-CLI creates a public URL (like https://your-app.serviceprovider.com) that tunnels to your local server. No deployment, no configuration, just run one command.

๐Ÿš€

Perfect For

๐Ÿ‘ฅ
Team Collaboration
Share your local work with remote teammates instantly
๐Ÿ“ฑ
Mobile Testing
Test your web app on real devices without deploying
๐ŸŽจ
Client Demos
Show work-in-progress without setting up staging servers
๐Ÿ”—
Webhook Testing
Test webhooks from third-party services on localhost
For development, testing, and demos.

Why Choose DevTunnel-CLI?

Everything you need to share local servers, with zero configuration required.

๐Ÿค–

Fully Automatic

Auto-detects your project and running dev server port. No manual configuration needed.

๐ŸŽฏ

Zero Configuration

Works with any project immediately. No config files to edit, no settings to change.

๐Ÿ”

Smart Detection

Intelligently finds your project and detects which port your dev server is running on.

๐Ÿ”Œ

Multiple Ports

DevTunnel-CLI supports multiple ports. Auto-detects or choose your port (3000, 8000, 5500, 80, etc.).

๐Ÿ”—

Multi-Service Fallback

Automatically tries Cloudflare โ†’ Ngrok โ†’ LocalTunnel for maximum reliability.

๐ŸŒ

Cross-Platform

Works perfectly on Windows, macOS, and Linux with native OS integration.

โšก

Lightning Fast

Get your public URL in seconds. No waiting, no delays, instant sharing.

๐Ÿš€

Any Framework

Vite, React, Vue, Next.js, Express, NestJS, Laravel, plain HTML, and PHP/XAMPP โ€” works with ALL of them. HTML gets a built-in static server; XAMPP subfolders (e.g. localhost/MyProject) supported.

๐Ÿ›ก๏ธ

Smart Proxy

Built-in proxy bypasses framework restrictions. No need to modify your project config.

How It Works

Simple 5-step process to get your local server online

1

Install DevTunnel-CLI

One-time installation via npm. Takes less than 10 seconds.

npm install -g devtunnel-cli
2

Go to Your Project

Navigate to your project folder โ€” Node/React (e.g. my-app), Laravel, plain HTML, or XAMPP (e.g. htdocs/MyProject).

cd your-project
3

Have Your App Running

Node/Laravel: run your dev server (npm run dev, php artisan serve). HTML: optional โ€” DevTunnel-CLI can start a built-in server. XAMPP: have Apache running.

npm run dev # OR php artisan serve # OR XAMPP / Live Server # HTML: DevTunnel-CLI can serve for you
4

Run DevTunnel-CLI

Open a NEW terminal, go to the SAME project directory, and run devtunnel-cli. It auto-detects project type and port (Node, Laravel, HTML, PHP/XAMPP).

cd your-project devtunnel-cli
โš ๏ธ Important: Run from the same directory as your project (or dev server)!
5

Share Your URL

DevTunnel-CLI gives you a public URL instantly. Share it with anyone, anywhere!

https://your-app.serviceprovider.com

Works With Everything

DevTunnel-CLI works with any HTTP/HTTPS server, regardless of framework or language.

๐ŸŽจFrontend Frameworks

Vite
React
Vue
Next.js
Angular
Svelte
Nuxt
Remix

โš™๏ธBackend & APIs

Express
NestJS
FastAPI
Flask
Django
Spring Boot
Laravel
Rails

โœจ Plus: REST APIs, GraphQL APIs, WebSocket servers, Microservices, Monoliths, and ANY HTTP/HTTPS server!

Plain HTML (port 5500 or built-in server) and PHP/XAMPP (port 80, e.g. http://localhost/YourProject/) are fully supported.

Get Started in 04 Seconds

Install DevTunnel-CLI globally and start sharing your local servers instantly

RECOMMENDED
npm

Install via npm

Fastest and easiest way to get started

npm install -g devtunnel-cli
Requires Node.js 16+. After installation, run devtunnel-cli from your project directory

Quick Reference

1. Install (one-time)
npm install -g devtunnel-cli
2. Go to your project
cd your-project
3. Have your app running (Terminal 1)
npm startornpm run devorphp artisan serveor XAMPP
HTML: optional โ€” DevTunnel-CLI can start a built-in server
4. Run DevTunnel-CLI (Terminal 2 - same directory!)
devtunnel-cli
โš ๏ธ Run from the same directory as your project!
5. Share your URL!
https://your-app.serviceprovider.com

Frequently Asked Questions

Q:What is DevTunnel-CLI for?

DevTunnel-CLI is built for development, testing, demos, and webhook debugging. Share work-in-progress with teammates, test on mobile devices, demo features to clients, or debug webhooks โ€” all with one command.

Q:How do URLs work?

Each run generates a fresh public URL. Share it with anyone; they can access your local server instantly. When you stop the tunnel (Ctrl+C), the URL stops working. Run again to get a new URL.

Q:Do I need to modify my project files?

No! DevTunnel-CLI works with zero configuration. Your project files stay untouched. A smart proxy forwards requests to your dev server automatically.

Q:What if my dev server is already running?

DevTunnel-CLI detects it automatically. Run devtunnel-cli from the same directory โ€” it finds your server and port and gives you a public URL right away.

Q:Can I use it with multiple projects or ports?

Yes! Run from different project directories; each gets its own URL. You can run multiple tunnels at once.

Q:Does it work with WebSockets?

Yes! Full WebSocket support for Vite HMR (Hot Module Reload), Socket.io, and other real-time features.

Q:What if Cloudflare is unavailable?

DevTunnel-CLI falls back to Ngrok (if installed) or LocalTunnel (built-in). You always get a working tunnel.

Q:How do I stop the tunnel?

Press Ctrl+C in the terminal where DevTunnel-CLI is running. The tunnel and proxy stop gracefully.

Ready to Share Your Local Servers?

Install DevTunnel-CLI now and start sharing your development work with the world in seconds.

View on GitHub