CLI Reference
hogsend test
Send a test event through the ingest pipeline and verify it was stored.
Usage
hogsend testFires a synthetic hogsend:test event to the ingest endpoint and verifies it was stored by querying the admin API. This is the fastest way to confirm the full pipeline -- ingest, storage, and admin query -- is working.
What it does
- Loads the API URL and admin API key from
.hogsend.yaml - Generates a unique test ID (format:
test-<unix_timestamp>-<random_hex>) - Sends a
POST /v1/ingestrequest with:event:"hogsend:test"userId:"hogsend-cli-test"userEmail:"[email protected]"properties:{ source: "cli", testId: "<generated>", timestamp: "<iso8601>" }
- Queries the admin events API up to 3 times at 2-second intervals, looking for an event matching the test ID
- Prints a PASS or WARN result card
Output
PASS -- event was stored
HOGSEND TEST
Sending test event... done
Verifying event arrived... done
PASS Pipeline is working
Event: hogsend:test
Test ID: test-1716681234-a1b2c3d4
Stored at: 2025-05-25T12:00:34Z
Roundtrip: 1.234sWARN -- event accepted but not found
WARN Event was accepted but not found in storage
This can happen if:
- The database is still initializing
- The Hatchet worker hasn't processed it yet
- The ADMIN_API_KEY doesn't match
API: https://hogsend-api.up.railway.app
Railway: https://railway.com/project/abc-123A WARN result does not necessarily mean something is broken. After a fresh deploy, it can take a few seconds for the database and worker to finish initializing. Wait a moment and run hogsend test again.
Requirements
.hogsend.yamlmust exist with a validapi_key- The API must be reachable at the configured domain
- The
ADMIN_API_KEYon the server must match the key in.hogsend.yaml