CLI Overview
Command-line tool for authenticating against your Hookie web app, listing applications and topics, and streaming webhook events
The Hookie CLI authenticates against your running Hookie web app (Clerk), talks to your relay, and streams webhook events in real time.
Installation
Install from npm (prebuilt binaries) or build from source in the cli/ directory of the repository.
pnpm add -g @hookie-sh/hookienpm install -g @hookie-sh/hookiebun install -g @hookie-sh/hookieAfter installation, verify it's working:
hookie --versionQuick Start
-
Run the web app and relay (see Self-hosting).
-
Authenticate — browser login against your app:
hookie loginSet HOOKIE_WEB_APP_URL if your app is not embedded in the CLI build (see the repo cli/README.md).
- List applications:
hookie apps- Listen to webhook events:
hookie listen --app-id <your-app-id>Commands Overview
- Authentication -
loginandlogout - Applications -
apps - Topics -
topics - Listen -
listenand anonymous mode - Configuration -
hookie.ymland env vars - Init -
initfor interactivehookie.yml
Global Flags
--org-id <org-id>- Organization scope forlistenandinit--debugor-d- Verbose output
Example:
hookie --org-id <org-id> appsConfiguration
Global
Tokens and optional relay overrides live under ~/.hookie/ (or HOOKIE_CONFIG_DIR). Use hookie login / hookie logout.
Repository
Use hookie.yml for app_id, forward, and per-topic URLs. See Configuration.