@catchhook/tunnel
v0.6.0
Published
CatchHook CLI — tunnel webhooks to localhost with a live dashboard
Maintainers
Readme
@catchhook/tunnel
CatchHook CLI for tunneling webhooks from CatchHook to your localhost.
Installation
Zero-install:
npx @catchhook/tunnel --helpGlobal:
npm install -g @catchhook/tunnelQuick Start
Permanent endpoint
npx @catchhook/tunnel start --endpoint ep_abc123 --port 3000If no valid token is stored, the CLI launches browser auth automatically.
Headless options:
npx @catchhook/tunnel start --endpoint ep_abc123 --token chk_dev_xxx --port 3000
# or
CATCHHOOK_TOKEN=chk_dev_xxx npx @catchhook/tunnel start --endpoint ep_abc123 --port 3000Temporary endpoint
npx @catchhook/tunnel ep_abc123 --key tkey_abc123 --port 3000Commands
| Command | Description |
|---------|-------------|
| catchhook-tunnel start ... | Start tunnel (auto-auth for permanent endpoints) |
| catchhook-tunnel endpoints | List endpoints |
| catchhook-tunnel auth login | Explicit browser auth flow |
| catchhook-tunnel auth whoami | Verify token and account identity |
| catchhook-tunnel auth token set/show/clear | Manage stored token |
start options
| Flag | Description | Default |
|------|-------------|---------|
| --endpoint <id> | Endpoint ID(s) to tunnel (repeatable) | — |
| --all | Tunnel all endpoints | false |
| --new | Create a new endpoint and tunnel it | false |
| --port <n> | Local port | 3000 |
| --token <token> | API token (also stored locally) | — |
| --auth-code <code> | One-time auth code from browser flow | — |
| --no-browser | Don’t auto-open browser for auth | false |
| --host <host> | CatchHook host | catchhook.app |
| --key <tunnel_key> | Anonymous tunnel mode | — |
Development
cd packages/catchhook-tunnel
npm install
npm run dev -- --help
npm test