Command reference
Run hooknexus <command> --help for the full option list. This page matches the current official CLI behavior. Repository: hooknexus/hooknexus-cli on GitHub · Package: hooknexus on npm.
Global options
hooknexus --helphooknexus --versionhooknexus --no-colorhooknexus <command> --json--json is supported where the command documents it (for example listen). HOOKNEXUS_NO_COLOR and HOOKNEXUS_DEBUG are also recognized by the CLI.
Authentication
hooknexus loginhooknexus logouthooknexus whoamilogin— GitHub OAuth in the browser.logout— Clears the saved session locally.whoami— Prints the current user when logged in.
If you are already logged in, login may prompt to confirm switching accounts.
Endpoints
hooknexus endpointshooknexus endpoints lshooknexus endpoints createhooknexus endpoints create --permanenthooknexus endpoints info <endpoint-id>hooknexus endpoints delete <endpoint-id>Notes:
- Running
hooknexus endpointswith no subcommand prints help for that group. --permanentis a Plus feature.
Aliases include hooknexus ep for the endpoints group; use --help on subcommands for exact flags (for example --alias, TTL options on create).
Listen (realtime stream)
hooknexus listenhooknexus listen <endpoint-id>hooknexus listen <endpoint-id-1> <endpoint-id-2>hooknexus listen --allhooknexus listen --jsonhooknexus listen --quietNotes:
- With no endpoint argument, the CLI loads endpoints for your account.
- One endpoint → selected automatically.
- Several → interactive prompt in a TTY.
- None → creates a normal endpoint and continues.
Forward to local
hooknexus forward --to http://localhost:PORT/PATHhooknexus forward <endpoint-id> --to http://localhost:PORT/PATHhooknexus forward --to http://localhost:3000 --preserve-pathhooknexus forward --to http://192.168.1.100:8080/webhook --allow-externalNotes:
--tomust be a full URL including the path where your server receives the request; replacePORT/PATHwith your values (see Local forwarding).- Available on Free and Plus.
- By default only
localhost,127.0.0.1, and.localtargets are allowed. - Use
--allow-externalfor other hosts (use with care). - Endpoint selection matches
listenwhen you omit the endpoint id.
See Local forwarding for behavior, headers, and options in depth.
For a higher-level walkthrough, see Forward webhooks to localhost on hooknexus.com.
Requests & replay
hooknexus requestshooknexus requests ls <endpoint-id>hooknexus requests show <request-id>hooknexus requests body <request-id>hooknexus requests replay <request-id> --to http://localhost:PORT/PATHNotes:
hooknexus requestsalone prints help for that group.requests bodypretty-prints JSON when the body parses as JSON.- Partial request ids → the CLI tells you to run
requests lsfor the full id. requests replay --touses the same full URL (with path) rule asforward.requests replayis Plus only.
Account & billing
hooknexus account infohooknexus account subscriptionhooknexus upgradeConfig
hooknexus config lshooknexus config get apiUrlhooknexus config set apiUrl https://api.hooknexus.comhooknexus config set timeout 30000hooknexus config resethooknexus config pathConfigurable keys:
| Key | Purpose |
|---|---|
apiUrl | HookNexus business API base URL |
webUrl | Web app URL used by OAuth and links |
outputFormat | pretty, json, or minimal |
color | Boolean color toggle |
timeout | HTTP timeout in ms (allowed range enforced by CLI) |
Plan limits relevant to the CLI
| Capability | Free | Plus |
|---|---|---|
| Temporary endpoints | 3 | 10 |
| Permanent endpoints | — | 1 |
| WebSocket listeners | 2 per endpoint | 3 per endpoint |
| Forward to local | Yes | Yes |
| Request replay | — | Yes |
| Request retention | 48 hours | 30 days |
| API key | — | Yes |