Install the CLI, start the server, codify a schema, and write your first event. These
commands mirror the ones we ship in production runbooks. The binary installs as
eventdbx and also registers a shorter
dbx alias.
$ curl -LsSf https://github.com/thachp/eventdbx/releases/download/v1.12.2/eventdbx-installer.sh | sh
$ dbx start --foreground
REST and GraphQL listening on http://0.0.0.0:7070
CLI socket ready on tcp://0.0.0.0:6363
Grab the latest release for macOS, Linux, or Windows. Install scripts add the binary to your
path and create a config directory under
$HOME/.eventdbx.
$ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/thachp/eventdbx/releases/download/v1.12.4/eventdbx-installer.sh | sh
# PowerShell
PS> irm https://github.com/thachp/eventdbx/releases/download/v1.12.4/eventdbx-installer.ps1 | iex
Run the server in the foreground while you iterate. When the process is alive, the CLI proxies writes through the REST API automatically.
$ dbx start --foreground
INFO binding REST + GraphQL on http://0.0.0.0:7070
INFO binding CLI socket on tcp://0.0.0.0:6363
INFO restriction enabled (schema enforcement active)
Schemas lock down which events each aggregate accepts and how frequently snapshots occur. Keep them in version control and deploy them through CI.
$ dbx schema create \
--aggregate patient \
--events patient-added,patient-updated \
--snapshot-threshold 100
Schema stored at $HOME/.eventdbx/schemas/patient.json
Use the CLI for the smoothest experience or hit the REST API directly. Both paths land the same immutable event.
$ dbx aggregate apply patient p-002 patient-added \
--field name="Jane Doe" \
--field status=active
$ curl -X POST http://127.0.0.1:7070/v1/events \
-H "Authorization: Bearer ${EVENTDBX_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"aggregate_type": "patient",
"aggregate_id": "p-002",
"event_type": "patient-added",
"payload": {
"name": "Jane Doe",
"status": "active"
}
}'
dbx aggregate events patient p-002.
http://127.0.0.1:7070/health.
Dive into the API and CLI references to wire EventDBX into your workflows and automation.