Skip to content

CLI

The evidentsource CLI scripts the same operations you’d do from a UI or SDK — designed for CI pipelines, demos, and quick operational work.

Terminal window
# macOS / Linux
curl -fsSL https://sandbox.evidentsource.com/install.sh | sh
# Or build from source
cargo install evidentsource-cli

Point the CLI at an endpoint:

Terminal window
evidentsource config set endpoint https://sandbox.evidentsource.com
evidentsource config set database todomvc

For your own deployment, also set an authentication token.

Terminal window
# Issue a command
evidentsource command send CreateTodo --subject todo-1 --data '{"title":"Hi"}'
# Query events
evidentsource events query --subject todo-1
Terminal window
evidentsource state-view read todo-list
evidentsource state-view read single-todo --todoId todo-1 --as-of 2026-04-20T00:00:00Z
Terminal window
evidentsource sandbox deploy --project ./my-project --database my-todos
Terminal window
evidentsource db list
evidentsource db create my-db
evidentsource components list --database my-db
Terminal window
evidentsource completion fish > ~/.config/fish/completions/evidentsource.fish
evidentsource completion bash > /etc/bash_completion.d/evidentsource
evidentsource completion zsh > "${fpath[1]}/_evidentsource"

evidentsource --help and evidentsource <subcommand> --help are the authoritative references.