Skip to content

CLI command reference

This page summarizes the main hooknexus commands. Run hooknexus <command> --help for full options.

Authentication

CommandDescription
hooknexus loginOpens the browser for OAuth (GitHub / Google). Use --token for non-interactive login.
hooknexus logoutClears the saved session locally.
hooknexus whoamiPrints the current user (if logged in).

Endpoints

CommandDescription
hooknexus endpoints listLists your endpoints (alias: hooknexus endpoints ls).
hooknexus endpoints createCreates an endpoint. Optional: --alias, --ttl (e.g. 7d).
hooknexus endpoints show <id>Shows details for one endpoint.
hooknexus endpoints delete <id>Deletes an endpoint (aliases: rm, remove).

Real-time monitoring

Terminal window
hooknexus listen <endpoint-id>

Streams incoming webhook requests for that endpoint over WebSocket. Use multiple IDs or hooknexus listen --all to monitor more than one endpoint.

Common options:

  • --json — JSON lines per request
  • --quiet — Minimal output

Local forwarding (Pro)

Terminal window
hooknexus forward <endpoint-id> --to http://localhost:3000/webhook

Forwards each captured request to your local URL. Requires a Pro (or higher) plan. See Local forwarding.

Request replay (Pro)

Terminal window
hooknexus requests replay <request-id> --to <url>

Re-sends a stored request to your target URL. Pro feature. List and inspect requests with:

  • hooknexus requests list <endpoint-id>
  • hooknexus requests show <request-id>
  • hooknexus requests body <request-id>

Account and connection

There is no single status command. Use these instead:

CommandDescription
hooknexus whoamiConfirms who is logged in.
hooknexus accountAccount overview; use hooknexus account subscription for plan details.
hooknexus upgradeOpens the pricing / checkout flow in the browser.
hooknexus config showShows API URL and other local settings.

Global options and output

The CLI does not use a --format flag. Output modes:

Option / envEffect
--jsonMachine-readable JSON where the command supports it (e.g. listen).
--quiet / -qShorter, quieter logs.
--no-colorDisables ANSI colors (also HOOKNEXUS_NO_COLOR).
-v, --versionPrints the CLI version.
-h, --helpHelp for the program or subcommand.
HOOKNEXUS_DEBUGExtra diagnostic output when debugging.

Aliases

Some commands have short aliases, for example hooknexus endpoints ls, hooknexus forward as fwd, and hooknexus account subscription as sub. Use --help on each command for the exact aliases.