termly-cli
termly-cli copied to clipboard
feat: self-hosted local server + new AI tools (crush, gemini, vibe)
Summary
The official termly.dev server is offline. This PR bundles termly-local-server/, a self-hosted relay server that implements the same WebSocket protocol so the Termly mobile app works over LAN without any cloud dependency.
What's Added
termly-local-server/
- server.js — zero-knowledge WebSocket relay (E2EE, server never decrypts)
- REST endpoints: /api/pairing, /api/pairing/batch, /api/cli/version, /api/health
- Heartbeat ping/pong, deferred connection classification
- termly-server.sh — one-command launcher
CLI Changes
- termly server [start|stop|status|launch] command for server management
- Auto-sets TERMLY_ENV=local in launch flow
- LAN IP in QR code for mobile connectivity
- Local mode defaults to port 3001
New AI Tools
- crush (charmbracelet, TUI mode)
- gemini (Google, TUI mode)
- vibe (Mistral Vibe PR workflow CLI)
Usage
npm install -g @termly-dev/cli termly-server start
Scan QR code with Termly mobile app. Done.