LocalToGlobal is a CLI-first developer tool that detects local apps, applies safe sharing defaults, and exposes them through Cloudflare Quick Tunnels.
Normal users do not need Rust or Cargo. Install the latest release:
curl -fsSL https://raw.githubusercontent.com/MananxRobin/localToGlobal/main/install.sh | shThe installer downloads the right ltg binary for macOS/Linux and runs ltg doctor. If cloudflared is missing, ltg installs a managed copy under ~/.local/share/localtoglobal/bin/.
If ltg is not found after install, add this to your shell profile:
export PATH="$HOME/.local/bin:$PATH"You can also run the installed binary directly:
$HOME/.local/bin/ltg share 3000Start your local app, then share it:
ltg share 3000Or let LocalToGlobal detect local HTTP services first:
ltg run
ltg shareRun a dependency check anytime:
ltg doctorltg run
ltg share
ltg routes init
ltg protect --expires-in 30m --access-mode token
ltg status
ltg stop
ltg stop --all
ltg update
ltg doctorThe CLI keeps a project-aware config in .localtoglobal.yml and runtime state under .localtoglobal/.
sharestarts a small local guard proxy that enforces expiry and optional share tokens before forwarding to your real local app.statussummarizes active shares by reading the persisted runtime state and access logs.stopshuts down the latest active share, a selected share id, or all active shares with--all.updatereplaces the currentltgbinary with the latest GitHub Release for your OS and CPU.- Route profiles let you publish multiple local services behind one Cloudflare URL by matching path prefixes.
Install Rust only if you want to work on LocalToGlobal itself:
git clone https://github.com/MananxRobin/localToGlobal.git
cd localToGlobal
cargo test
cargo run -- share 3000