local-tunnel-manager

utility to run local tunnel inside pm2

Usage no npm install needed!

<script type="module">
  import localTunnelManager from 'https://cdn.skypack.dev/local-tunnel-manager';
</script>

README

local-tunnel-manager

runs local tunnel with pm2 manager

getting started

If you are new to local tunnel, check out what local tunnel does for you

installation

npm install -g local-tunnel-manager

usage

you can use the same options as you provide to local tunnel

Usage: lt-manager --port [num] <options>

Commands:
  ls  shows pm2 status

Options:
  -h, --host        Upstream server providing forwarding
                                              [default: "http://localtunnel.me"]
  -s, --subdomain   Request this subdomain
  -l, --local-host  Tunnel traffic to this host instead of localhost, override
                    Host header to this host
  -o, --open        opens url in your browser
  -p, --port        Internal http server port                         [required]
  --ls, --pm2-ls    pm2 ls command
  --help            Show this help and exit                            [boolean]
  --version         Show version number                                [boolean]

example

lt-manager --port 5000 --subdomain mytestdomain

others

you can use pm2 ls if you have installed pm2 globally or else you can use lt-manager ls to know the tunnel status.