-
Notifications
You must be signed in to change notification settings - Fork 0
CLI Commands
Ahmed edited this page Mar 16, 2026
·
1 revision
EventLens includes a powerful CLI for interacting with your event store from the terminal.
You can execute CLI tasks using the Gradle wrapper:
./gradlew :eventlens-cli:run --args="[command] [options]"Starts the EventLens API and UI server.
./gradlew :eventlens-cli:run --args="serve --port 9090"Performs a high-speed search across events using specific filters.
./gradlew :eventlens-cli:run --args="bisect --type ORDER_CREATED --after 2026-03-01"Exports a stream of events to a local file (e.g., JSON or CSV) for offline processing.
./gradlew :eventlens-cli:run --args="export --aggregate-id 123 --output events.json"Manually triggers a state reconstruction for an aggregate and prints the resulting JSON to the console.
./gradlew :eventlens-cli:run --args="replay --aggregate-id 123"Compares the state of an aggregate between two specific event IDs or timestamps.