--- name: inngest-ctl description: | Inngest CLI for querying events and function runs. Use this skill when you need to: list Inngest events, send events, get event details, check run status, monitor job duration, list runs for an event, or cancel running functions. Trigger phrases include "list events", "send event", "event status", "run status", "check run", "cancel run", "inngest events", "function runs", "job status". --- # inngest-ctl Reference A CLI tool for interacting with Inngest events and function runs. ## Setup ### Running the CLI ```bash # Via bunx (no install needed) bunx @ctdio/inngest-ctl # Or create an alias alias inngest-ctl="bunx @ctdio/inngest-ctl" ``` ### Environment Variables (Required) ```bash export INNGEST_EVENT_KEY="your-event-key" # For sending events export INNGEST_SIGNING_KEY="your-signing-key" # For API queries ``` ### For Local Dev Server Use `--dev` flag: ```bash inngest-ctl events list --dev --pretty ``` Override URL: ```bash export INNGEST_DEV_URL="http://localhost:9000" ``` ## Commands ### List Events ```bash inngest-ctl events list [--name ] [--limit ] [--pretty] [--dev] ``` **Examples:** ```bash inngest-ctl events list --pretty inngest-ctl events list --name "user.signup" --limit 10 --pretty inngest-ctl events list --dev --pretty ``` ### Send Event ```bash inngest-ctl events send --name "" --data '' [--id ] [--env ] [--dev] ``` **Examples:** ```bash inngest-ctl events send --name "user.signup" --data '{"userId": "123"}' inngest-ctl events send --name "test.event" --data '{}' --dev inngest-ctl events send --name "order.created" --data '{"orderId": "o1"}' --env "feature/my-branch" ``` ### Get Event Details ```bash inngest-ctl events get [--pretty] [--dev] ``` **Example:** ```bash inngest-ctl events get 01H08W4TMBNKMEWFD0TYC532GG --pretty ``` ### List Runs for Event ```bash inngest-ctl events runs [--pretty] [--dev] ``` **Example:** ```bash inngest-ctl events runs 01H08W4TMBNKMEWFD0TYC532GG --pretty ``` ### Get Run Status Monitor run status and duration. ```bash inngest-ctl runs status [--pretty] [--dev] ``` **Example:** ```bash inngest-ctl runs status 01H08W5TMBNKMEWFD0TYC532GH --pretty ``` ### Get Run Details (Jobs/Steps) ```bash inngest-ctl runs get [--pretty] [--dev] ``` **Example:** ```bash inngest-ctl runs get 01H08W5TMBNKMEWFD0TYC532GH --pretty ``` ### List Runs by Event ```bash inngest-ctl runs list --event [--pretty] [--dev] ``` **Example:** ```bash inngest-ctl runs list --event 01H08W4TMBNKMEWFD0TYC532GG --pretty ``` ### Cancel Runs ```bash inngest-ctl cancel --app --function --started-after