π Website: devtunnel-cli.vercel.app | π¦ npm: devtunnel-cli | π» GitHub: maiz-an/DevTunnel-CLI | π¬ Discord: Join the community
npm i -g devtunnel-cliThen run devtunnel-cli from your project directory.
Optional: force a specific local port when needed:
devtunnel-cli --port 5174DevTunnel-CLI is designed for DEVELOPMENT, TESTING, DEMOS, and WEBHOOK DEBUGGING. It provides fast, frictionless access to your local dev servers from anywhere.
DevTunnel-CLI is built for developers who need instant public URLs to share work-in-progress, test on mobile devices, demo features to clients, or debug webhooks from third-party services.
1. Install DevTunnel (one-time setup):
npm i -g devtunnel-cli2. Navigate to your project directory:
cd your-project3. Have your app running (in one terminal):
npm run dev
# OR php artisan serve (Laravel)
# OR XAMPP / Live Server (PHP/HTML)
# HTML: optional β DevTunnel can start a built-in server4. Run DevTunnel (in another terminal, same directory):
cd your-project # Same directory as your project
devtunnel-cli # Auto-detects project type and port!That's it! DevTunnel auto-detects Node, Laravel, HTML, and PHP/XAMPP projects.
Port priority logic:
--port/-pflag (if provided)- Auto-detected running local dev server port
- Framework default fallback (for example Vite
5173)
- π€ Fully Automatic - Cloudflare bundled, no installation needed
- π― Zero Config - No project changes needed
- π Smart Proxy - Bypasses Vite/React restrictions
- π Cross-Platform - Windows, macOS, Linux
- π Any Framework - Node, React, Laravel, plain HTML, PHP/XAMPP
- π HTML - Default port 5500; built-in static server if none running
- π PHP/XAMPP - Port 80; supports htdocs subfolders (e.g. http://localhost/YourProject/)
- π Multi-Service - Cloudflare, Ngrok, LocalTunnel fallback
- π Multiple Ports - DevTunnel-CLI supports multiple ports; auto-detects or lets you choose
- πΉ Streaming Support - Handles video/audio files
Important: Run devtunnel-cli from the same directory as your project!
- Install DevTunnel (one-time):
npm i -g devtunnel-cliβ see Install above. - Go to your project:
cd your-project(Node, Laravel, HTML, or XAMPP folder) - Have your app running:
npm run dev,php artisan serve, or XAMPP. For HTML, optional β DevTunnel can serve it. - Open a new terminal in the same project directory
- Run DevTunnel:
devtunnel-cli(auto-detects project type and port!) - Get your public URL and share it! π
Example (Node):
# Terminal 1
cd my-react-app
npm run dev
# Terminal 2 - same directory
cd my-react-app
devtunnel-cliWorks with: Vite, React, Next.js, Express, NestJS, Laravel, plain HTML, PHP/XAMPP, and any HTTP/HTTPS server.
DevTunnel automatically scans active localhost dev ports and prioritizes the best match for your current project.
Example with multiple Vite apps:
- Project A runs on
5173 - Project B auto-shifts to
5174 - Running
devtunnel-cliinside Project B detects and uses5174
You can always override with:
devtunnel-cli --port 5174- Node.js 16+ (nodejs.org).
- Internet connection and your dev server running.
Cloudflare is automatically bundled on first run.
MIT License - see LICENSE
Latest on npm | Made with β€οΈ for developers worldwide
Find this project as: DevTunnel, devtunnel, dev-tunnel, Dev-Tunnel, DevTunnel-CLI, devtunnel-cli, dev-tunnel-cli, Dev-Tunnel-CLI. npm (install here): devtunnel-cli Β· Docs: devtunnel-cli.vercel.app Β· GitHub: maiz-an/DevTunnel-CLI.
- Website: devtunnel-cli.vercel.app
- npm: devtunnel-cli
- GitHub: maiz-an/DevTunnel-CLI
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Discord: Join the community