@hookie-sh/hookie
v0.8.0
Published
Hookie CLI – install and run from npm
Downloads
125
Readme
Hookie CLI
Hookie is a webhook ingestion and relay platform. It lets you receive, inspect, and stream webhook events in real time—from the web app or directly in your terminal with this CLI.
This package is the npm distribution of the Hookie CLI. The postinstall script downloads the correct native binary for your platform (macOS, Linux, Windows) from GitHub releases, so you can run hookie without building from source.
Install
# pnpm
pnpm add -g @hookie-sh/hookie
# npm
npm install -g @hookie-sh/hookie
# bun
bun install -g @hookie-sh/hookieOr run once without installing:
npx @hookie-sh/hookie listenRequirements: Node.js 18+. Supported platforms: macOS (amd64, arm64), Linux (amd64, arm64), Windows (amd64).
Quick start
Sign in (opens browser):
hookie loginList your applications:
hookie apps listStream webhook events for an app (or pick interactively):
hookie listen --app-id <app-id>Optional: Pin an app to the current repo so you can run
hookie listenwithout flags:hookie initThis creates a
hookie.ymlin the current directory. The CLI discovers it when you run commands from this repo (or any subdirectory).
Commands
| Command | Description |
|--------|-------------|
| hookie login | Authenticate with Hookie (Clerk; opens browser) |
| hookie logout | Clear local credentials |
| hookie apps list | List your Hookie applications |
| hookie topics <app-id> | List topics for an application |
| hookie listen | Stream webhook events (interactive or with flags) |
| hookie init | Create hookie.yml in the current directory |
Listen options
--app-id,-a— Subscribe to all topics of an application.--topic-id,-t— Subscribe to a single topic.--forward,-f— Forward each event as a request to a URL (e.g. your local server).--ui— Show the local event UI when using--forward.--org-id— Organization ID (if you use multiple orgs).
Without --app-id or --topic-id, the CLI prompts you to choose an app or topic. If you’re not logged in, hookie listen runs in anonymous mode with an ephemeral channel (handy for quick tests).
Repository config: hookie.yml
In a repo root you can add a hookie.yml to set defaults for that project:
app_id: your-app-id
forward: https://your-server.local/webhooks
topics:
topic-id-1: https://service-a.local/events
topic-id-2: https://service-b.local/events- app_id / topic_id — Default app (and optionally topic) for
hookie listen. - forward — Default URL to forward events to.
- topics — Per-topic override URLs for forwarding.
CLI flags override these values. The CLI looks for hookie.yml from the current directory upward.
Links
- Web app — Create apps and webhooks.
- Documentation — Full guides and API details.
- GitHub — Source and releases.
License
Apache-2.0
