Install & quick start
The HookNexus CLI is the official command-line tool for your account: manage endpoints, stream webhooks in the terminal, inspect stored requests, and forward live traffic to a local URL.
Open-source repository: github.com/hooknexus/hooknexus-cli
Requirements
- Node.js 18 or newer
- npm, pnpm, or yarn for global installs
Install
npm install -g hooknexuspnpm add -g hooknexusyarn global add hooknexusAfter a global install, run hooknexus in your terminal. Some installs also expose the hnx alias (see the package bin field).
Verify:
hooknexus --versionhooknexus --helpSign in
login currently uses GitHub OAuth only. The CLI opens a browser flow and stores a JWT locally after success.
-
Run:
Terminal window hooknexus login -
Complete sign-in in the browser.
-
Return to the terminal when the CLI reports success.
If you are already logged in, the CLI may ask whether you want to switch accounts.
Quick start
# 1. Sign inhooknexus login
# 2. Create an endpointhooknexus endpoints create
# 3. Stream webhooks in the terminalhooknexus listen
# 4. Forward to your machine (replace PORT/PATH — full URL including path)hooknexus forward --to http://localhost:PORT/PATHUpdate
npm update -g hooknexus(Use your package manager’s equivalent if you did not install with npm.)
Uninstall
npm uninstall -g hooknexusHow the CLI connects to HookNexus
- Business API (default):
https://api.hooknexus.com - Auth / billing API (default):
https://api.infra-hub.hooknexus.com - After login, credentials are stored locally as a JWT.
- WebSocket connections send both an
Authorizationheader and a query token.
Override URLs with hooknexus config (see Command reference) — keys apiUrl, webUrl — when needed (for example self-hosted or staging).
Next steps
Source & contributing
- GitHub: hooknexus/hooknexus-cli — source code, issues, and development docs (
docs/development.md). - npm: hooknexus — global install name
hooknexus.