@decipher-sdk/decipher-tunnel
v0.1.0
Published
Decipher Tunnel CLI — expose local servers through secure tunnels for testing on local urls.
Downloads
473
Readme
Decipher Tunnel CLI
Expose your local development server to the internet so Decipher can run tests against it.
Why
Decipher's test runner needs a publicly reachable URL to interact with your app. decipher-tunnel creates a secure tunnel from a public URL to your local machine using ngrok, so you can run Decipher tests without deploying.
Installation
npm install @decipher-sdk/decipher-tunnel -gCommands
login
Authenticate with your Decipher account. Opens a browser window where you copy a token and paste it back into the terminal.
decipher-tunnel loginlogout
Revoke your credentials and remove stored authentication.
decipher-tunnel logoutforward
Start a tunnel to expose a local port.
decipher-tunnel forward -p <port>| Flag | Description |
| --------------------- | ----------------------------------- |
| -p, --port <number> | (required) Local port to tunnel |
While running, all proxied requests are logged:
[12:34:56] --> GET /api/users
[12:34:56] <-- 200 GET /api/users 42msOnly one tunnel can be active at a time. Use kill to stop a running tunnel before starting a new one.
me
Show the currently authenticated user.
decipher-tunnel melist
Show the active tunnel (public URL, local port, PID, start time).
decipher-tunnel listkill
Stop the active tunnel.
decipher-tunnel killRequirements
- Node.js >= 18
