Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LocalToGlobal

LocalToGlobal is a CLI-first developer tool that detects local apps, applies safe sharing defaults, and exposes them through Cloudflare Quick Tunnels.

Install

Normal users do not need Rust or Cargo. Install the latest release:

curl -fsSL https://raw.githubusercontent.com/MananxRobin/localToGlobal/main/install.sh | sh

The 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 3000

Quick Start

Start your local app, then share it:

ltg share 3000

Or let LocalToGlobal detect local HTTP services first:

ltg run
ltg share

Run a dependency check anytime:

ltg doctor

Commands

ltg run
ltg share
ltg routes init
ltg protect --expires-in 30m --access-mode token
ltg status
ltg stop
ltg stop --all
ltg update
ltg doctor

Config

The CLI keeps a project-aware config in .localtoglobal.yml and runtime state under .localtoglobal/.

Notes

  • share starts a small local guard proxy that enforces expiry and optional share tokens before forwarding to your real local app.
  • status summarizes active shares by reading the persisted runtime state and access logs.
  • stop shuts down the latest active share, a selected share id, or all active shares with --all.
  • update replaces the current ltg binary 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.

Develop From Source

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

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages