Command Reference

All available commands for the whk CLI.

Run whk with no arguments to launch the interactive TUI, or use the subcommands below for scriptable, plain-text output.

whk (interactive)

Launch the interactive TUI. Provides a menu-driven interface for all CLI features with real-time request streaming, color-coded methods, and a request detail viewer.

whk
FlagDescription
--noguiDisable the TUI and print help instead (also: WHK_NOGUI=1)

auth login

Log in to webhooks.cc. Opens your browser to verify a device code. Credentials are stored at ~/.config/whk/token.json.

whk auth login

auth logout

Remove stored credentials from your machine.

whk auth logout

auth status

Show current authentication status and email.

whk auth status

create

Create a new endpoint. An optional name can be provided; the slug is auto-generated.

whk create [name]

list

List all your endpoints with their slugs, names, and URLs.

whk list

delete

Delete an endpoint. Prompts for confirmation unless --force is set.

whk delete <slug>
FlagDescription
--force, -fSkip the confirmation prompt

tunnel

Forward webhooks to a local port. Creates a new endpoint unless --endpoint is set.

whk tunnel <port>
FlagDescription
--endpointUse an existing endpoint instead of creating one
--ephemeral, -eDelete the endpoint when the tunnel exits
--header, -HAdd a custom header to forwarded requests (repeatable, format: Key:Value)

listen

Stream incoming requests for an endpoint to the terminal without forwarding them.

whk listen <slug>

replay

Replay a captured request to a target URL.

whk replay <request-id>
FlagDescription
--toTarget URL for replay (default: http://localhost:8080)

update

Update whk to the latest version.

whk update

--version

Print the CLI version.

whk --version