Install DemoTwo CLI
Expose your local dev server to the internet in seconds. One command to install, one command to connect.
Linux
Ubuntu, Debian, Fedora, Arch...
curl -fsSL https://demotwo.site/install.sh | bash
Requires Node.js 18+
macOS
Intel & Apple Silicon
curl -fsSL https://demotwo.site/install.sh | bash
Requires Node.js 18+
Windows
Windows 10+ (PowerShell)
irm https://demotwo.site/install.ps1 | iex
Requires Node.js 18+ • Run as Administrator
Alternative Methods
Via npm
If you already have Node.js, use npx to run without installing:
npx demotwo tunnel --token TOKEN --subdomain SUB --port 3000
Or install globally: npm i -g demotwo
Via wget
If curl isn't available on your system:
wget -qO- https://demotwo.site/install.sh | bash
Manual Download
Download the tarball directly and extract manually:
curl -o demotwo-cli.tar.gz https://demotwo.site/api/install/client-bundle
tar -xzf demotwo-cli.tar.gz
cd demotwo-cli && npm install
Docker
Run the tunnel client in a container:
docker run --rm -it --network host demotwo/cli tunnel --token TOKEN --subdomain SUB --port 3000
Quick Start
1
Install the CLI
curl -fsSL https://demotwo.site/install.sh | bash
2
Create a tunnel in the dashboard
Reserve a subdomain and copy your tunnel token.
3
Start your local server & connect
# Start your app on port 3000, then:
demotwo tunnel --token YOUR_TOKEN --subdomain my-app --port 3000
✓
Your app is live!
Visit https://my-app.demotwo.site from anywhere.
Uninstall
Linux / macOS
rm -rf ~/.demotwo
Windows (PowerShell)
Remove-Item -Recurse ~\.demotwo