ternetrok
v0.6.4
Published
CLI for ternetrok local HTTP tunnels.
Readme
ternetrok CLI
CLI for ternetrok local HTTP tunnels.
Install
npm install -g ternetrokLogin
Create a CLI token in the dashboard, then run:
ternetrok login <token>For local development:
ternetrok login <token> --api http://localhost:8080Share HTTP
From a project config:
# ternetrok.yaml
ports:
web: 3000
api: 8080ternetrok shareMultiple mappings open in one shared terminal dashboard. Use --no-tui for plain logs.
Or share one port directly:
ternetrok share http 3001 -n testResult:
https://test.share.ter.net.in -> http://127.0.0.1:3001Config
Config lives at:
~/.ternetrok/config.jsonProject tunnel mappings live in ternetrok.yaml, ternetrok.yml, .ternetrok.yaml, or .ternetrok.yml in the current directory. Use ternetrok share --config path/to/ternetrok.yaml to load a specific file. Expanded entries like ports: [{ name: web, port: 3000, protocol: http }] are also supported.
