beam

Commands

Every beam subcommand, its flags, and what it does.

The CLI is a small kong command tree. There are two leaf commands under webhook, plus the top-level version flag.

beam <command> [flags]

  webhook listen <name>    Listen for webhooks and replay them to a local URL.
  webhook send <name>      Send a delivery to a beam hub (reuses server/key from config).

  --version                Print version and exit.
  --help                   Show context-sensitive help.

beam webhook listen <name>

Open a WebSocket to the beam server, claim <name>, and replay every incoming delivery to a local URL (or print it with --tail). Full details in Listen & forward.

beam webhook listen myhook --forward http://localhost:3000
beam webhook listen myhook --tail --body-only | jq .event
flagenvdefaultmeaning
--forwardBEAM_FORWARDhttp://localhost:3000local URL to replay requests to
--serverBEAM_SERVER— (required)your beam deployment's base URL
--tokenBEAM_TOKENAPI token (required)
--keyBEAM_KEYoptional per-webhook delivery secret (?key=…)
--tailfalseprint requests to stdout instead of forwarding
--body-onlyfalsewith --tail, print only the request body
--insecurefalseskip TLS verify (local dev)

beam webhook send <name>

Fire a single delivery at a hub, reusing server and key from your config file. Needs no token (the delivery side is open). Full details in Send.

beam webhook send myhook -d '{"event":"order.created"}'
beam webhook send myhook --path /github/callback -X PUT -d @body.json
flagenvdefaultmeaning
--serverBEAM_SERVER— (required)your beam deployment's base URL
--keyBEAM_KEYdelivery secret, sent as ?key=… if required
-X, --methodPOSTHTTP method
-d, --databody; @file reads a file, @-/- reads stdin
-H, --headerextra Name: Value header (repeatable)
--pathsub-path appended to the hook
--queryraw query string (id=7&x=1)
--insecurefalseskip TLS verify (local dev)

Configuration precedence

For every flag with an env var or config-file equivalent:

explicit flag / env var  >  config file  >  built-in default

See Config file for the recognized keys.

On this page