Skip to content
GitHubLog inStart free
cetra is not released yet. These docs describe the development version.

CLI

The cetra binary runs the server (cetra serve), administers a data directory (cetra admin), writes a file for bug reports (cetra debug-bundle) and talks to a running server (cetra login, cetra query, cetra traces, cetra projects, cetra agents). This page is generated from the binary’s --help.

LLM observability server
Usage: cetra <COMMAND>
Commands:
serve Start the HTTP server
admin Admin operations on this data directory (users, encryption key, deletions)
version Print the cetra version
health Exit 0 if the server answers `GET <url>/readyz` with 200 (the container healthcheck)
debug-bundle Write a JSON file for a bug report: build and host facts, the configuration with secret values redacted, the running server's state and recent log lines. Contacts no network
login Sign in with a code you approve in the browser, and save a personal access token for a server
logout Revoke the saved personal access token
query Run a SQL query on a project
traces List and show traces
projects List the projects you can read
agents Connect coding agents (Claude Code, Codex, Gemini CLI, Copilot, Pi, Qwen Code, OpenClaw, OpenCode, Goose, Oh My Pi) to cetra
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help
-V, --version
Print version
Start the HTTP server
Usage: cetra serve [OPTIONS]
Options:
--config <CONFIG>
Config file. Overrides `CETRA_CONFIG`
-h, --help
Print help
Admin operations on this data directory (users, encryption key, deletions)
Usage: cetra admin <COMMAND>
Commands:
create-user Create a user
reset-password Print a password reset URL
list-users List users
rotate-encryption-key Re-encrypt stored secrets under a new key. Stop the server first
reapply-deletions Re-open the deletions of another data directory that this one lacks (after a backup restore). Both `meta.db` files must be at this binary's schema; run `cetra admin migrate` on a restored older backup first
backup Back up the running server into DIR (online; the server writes DIR)
gc-orphans Delete objects the catalog does not know and report the ones it misses. Stop the server first
migrate Migrate `meta.db` and `catalog.db` to this version's schema, then exit. Stop the server first
entitlements Org entitlements
org-sso An org's single sign-on (track P M5)
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help
Create a user
Usage: cetra admin create-user [OPTIONS] --email <EMAIL>
Options:
--email <EMAIL>
Email address
--name <NAME>
Display name
--password-stdin
Read the password from one line of stdin
--instance-admin
Make the user an instance admin
--config <CONFIG>
Config file. Overrides `CETRA_CONFIG`
-h, --help
Print help
Print a password reset URL
Usage: cetra admin reset-password [OPTIONS] --email <EMAIL>
Options:
--email <EMAIL>
Email address
--config <CONFIG>
Config file. Overrides `CETRA_CONFIG`
-h, --help
Print help
List users
Usage: cetra admin list-users [OPTIONS]
Options:
--format <FORMAT>
`table` or `json`
Possible values:
- table: Aligned columns
- json: The server's JSON, re-indented
[default: table]
--config <CONFIG>
Config file. Overrides `CETRA_CONFIG`
-h, --help
Print help (see a summary with '-h')
Re-encrypt stored secrets under a new key. Stop the server first
Usage: cetra admin rotate-encryption-key [OPTIONS]
Options:
--new-from-stdin
Read the new key (32 bytes, standard base64) from one line of stdin. Default: generate one, unless the current key comes from `CETRA_ENCRYPTION_KEY`
--config <CONFIG>
Config file. Overrides `CETRA_CONFIG`
-h, --help
Print help
Re-open the deletions of another data directory that this one lacks (after a backup restore). Both `meta.db` files must be at this binary's schema; run `cetra admin migrate` on a restored older backup first
Usage: cetra admin reapply-deletions [OPTIONS] --from <FROM>
Options:
--from <FROM>
The data directory whose `meta.db` holds the deletions to re-apply (for example the directory as it was before the restore)
--config <CONFIG>
Config file. Overrides `CETRA_CONFIG`
-h, --help
Print help
Back up the running server into DIR (online; the server writes DIR)
Usage: cetra admin backup [OPTIONS] --to <TO>
Options:
--to <TO>
Target directory on the server's filesystem: absent or empty, outside the data directory
--meta-only
Metadata only (S3-compatible object storage; objects stay in the bucket)
--config <CONFIG>
Config file. Overrides `CETRA_CONFIG`
-h, --help
Print help
Delete objects the catalog does not know and report the ones it misses. Stop the server first
Usage: cetra admin gc-orphans [OPTIONS]
Options:
--min-age <MIN_AGE>
Leave unknown objects younger than this (e.g. `1h`, `30m`)
[default: 1h]
--dry-run
Report only; delete nothing
--rollback-bucket
Required in S3 mode without `--dry-run`: deleting orphans there rolls the live bucket back
--config <CONFIG>
Config file. Overrides `CETRA_CONFIG`
-h, --help
Print help
Migrate `meta.db` and `catalog.db` to this version's schema, then exit. Stop the server first
Usage: cetra admin migrate [OPTIONS]
Options:
--config <CONFIG>
Config file. Overrides `CETRA_CONFIG`
-h, --help
Print help
Org entitlements
Usage: cetra admin entitlements <COMMAND>
Commands:
show Print an org's resolved entitlements
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help
Print an org's resolved entitlements
Usage: cetra admin entitlements show [OPTIONS] <ORG>
Arguments:
<ORG>
Org id or slug
Options:
--format <FORMAT>
`table` or `json`
Possible values:
- table: Aligned columns
- json: The server's JSON, re-indented
[default: table]
--config <CONFIG>
Config file. Overrides `CETRA_CONFIG`
-h, --help
Print help (see a summary with '-h')
An org's single sign-on (track P M5)
Usage: cetra admin org-sso <COMMAND>
Commands:
disable Turn an org's identity provider and its enforcement off, for a broken provider. A running server applies it within a minute
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help
Turn an org's identity provider and its enforcement off, for a broken provider. A running server applies it within a minute
Usage: cetra admin org-sso disable [OPTIONS] <ORG>
Arguments:
<ORG>
Org id or slug
Options:
--config <CONFIG>
Config file. Overrides `CETRA_CONFIG`
-h, --help
Print help
Print the cetra version
Usage: cetra version
Options:
-h, --help
Print help
Exit 0 if the server answers `GET <url>/readyz` with 200 (the container healthcheck)
Usage: cetra health [OPTIONS]
Options:
--url <URL>
Server URL
[default: http://127.0.0.1:8080]
-h, --help
Print help
Write a JSON file for a bug report: build and host facts, the configuration with secret values redacted, the running server's state and recent log lines. Contacts no network
Usage: cetra debug-bundle [OPTIONS]
Options:
--config <CONFIG>
Config file. Overrides `CETRA_CONFIG`
--output <OUTPUT>
Where to write the file. Default: `cetra-debug-<UTC time>.json` in the current directory. `-` writes it to stdout. An existing file is never overwritten
-h, --help
Print help
Sign in with a code you approve in the browser, and save a personal access token for a server.
The token expires after 90 days. Run `cetra login` again when it does.
Usage: cetra login [OPTIONS] --url <URL>
Options:
--url <URL>
Server URL, for example `http://127.0.0.1:8080`
--no-browser
Print the sign-in URL and code, and do not open a browser
-h, --help
Print help (see a summary with '-h')
Revoke the saved personal access token
Usage: cetra logout [OPTIONS]
Options:
--url <URL>
Server URL. Required when more than one server is saved
-h, --help
Print help
Run a SQL query on a project
Usage: cetra query [OPTIONS] --project <PROJECT> [SQL]
Arguments:
[SQL]
The SQL statement, with optional {name:Type} parameters. Put `--` before a statement that starts with `-`
Options:
--file <PATH>
Read the statement from a file; `-` reads stdin
--project <PROJECT>
Project UUID or org-slug/project-slug
[env: CETRA_PROJECT=]
--param <NAME=VALUE>
A parameter value; repeat for each parameter. Int and Timestamp values that are all digits are sent as integers (Timestamp: epoch milliseconds)
--from <TIME>
Window start, RFC 3339. Needs --to
--to <TIME>
Window end (exclusive), RFC 3339. Needs --from
--since <DURATION>
Window ending now, for example 30m, 24h or 7d
--limit <LIMIT>
Most rows for table and json (1–10000). The server's default is 10000
--timeout-ms <TIMEOUT_MS>
The server's query time limit in milliseconds (1000–60000). Its default is 60000
--format <FORMAT>
Output format
Possible values:
- table: Aligned columns
- json: A JSON array of row objects, pretty-printed
- csv: CSV export, streamed
- ndjson: One JSON object per line, streamed
- parquet: Parquet export, streamed
[default: table]
-o, --output <PATH>
Write the output to this file instead of stdout
--url <URL>
Server URL. Defaults to the only server saved by `cetra login`
[env: CETRA_URL=]
--token <TOKEN>
Personal access token. Defaults to the token `cetra login` saved for the server. A value given as a flag is visible to other local users in the process list; prefer CETRA_TOKEN or `cetra login`
[env: CETRA_TOKEN]
-h, --help
Print help (see a summary with '-h')
List and show traces
Usage: cetra traces <COMMAND>
Commands:
list List traces, newest first by default
get Show one trace as a span tree
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help
List traces, newest first by default
Usage: cetra traces list [OPTIONS] --project <PROJECT>
Options:
--project <PROJECT>
Project UUID or org-slug/project-slug
[env: CETRA_PROJECT=]
--filter <DSL>
Filter DSL over the traces view (spec 05), for example "status = 'error'"
--search <TEXT>
Full-text search over span input, output, name and system instructions
--from <TIME>
Range start: RFC 3339 or epoch milliseconds
--to <TIME>
Range end (exclusive): RFC 3339 or epoch milliseconds
--since <DURATION>
Range ending now, for example 30m, 24h or 7d
--sort <SORT>
Sort key
Possible values:
- start_time: Earliest span start
- duration: Trace duration
- cost_total: Total cost
- total_tokens: Total tokens
[default: start_time]
--order <ORDER>
Sort direction
Possible values:
- asc: Smallest or earliest first
- desc: Largest or latest first
[default: desc]
--limit <LIMIT>
Traces per page (1–1000)
[default: 50]
--cursor <CURSOR>
Cursor printed by the previous page
--include-eval
Include traces of the evaluation environment
--include-experiments
Include experiment traces
--format <FORMAT>
Output format
Possible values:
- table: Aligned columns
- json: The server's JSON, re-indented
[default: table]
--url <URL>
Server URL. Defaults to the only server saved by `cetra login`
[env: CETRA_URL=]
--token <TOKEN>
Personal access token. Defaults to the token `cetra login` saved for the server. A value given as a flag is visible to other local users in the process list; prefer CETRA_TOKEN or `cetra login`
[env: CETRA_TOKEN]
-h, --help
Print help (see a summary with '-h')
Show one trace as a span tree
Usage: cetra traces get [OPTIONS] --project <PROJECT> <TRACE_ID>
Arguments:
<TRACE_ID>
Trace id, 32 hex digits
Options:
--project <PROJECT>
Project UUID or org-slug/project-slug
[env: CETRA_PROJECT=]
--around <TIME>
When the trace happened, RFC 3339 or epoch milliseconds; speeds up the lookup
--format <FORMAT>
Output format
Possible values:
- tree: One line per span, indented by depth
- json: The server's JSON, re-indented
[default: tree]
--url <URL>
Server URL. Defaults to the only server saved by `cetra login`
[env: CETRA_URL=]
--token <TOKEN>
Personal access token. Defaults to the token `cetra login` saved for the server. A value given as a flag is visible to other local users in the process list; prefer CETRA_TOKEN or `cetra login`
[env: CETRA_TOKEN]
-h, --help
Print help (see a summary with '-h')
List the projects you can read
Usage: cetra projects <COMMAND>
Commands:
list List every project you can read, across your orgs
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help
List every project you can read, across your orgs
Usage: cetra projects list [OPTIONS]
Options:
--format <FORMAT>
Output format
Possible values:
- table: Aligned columns
- json: The server's JSON, re-indented
[default: table]
--url <URL>
Server URL. Defaults to the only server saved by `cetra login`
[env: CETRA_URL=]
--token <TOKEN>
Personal access token. Defaults to the token `cetra login` saved for the server. A value given as a flag is visible to other local users in the process list; prefer CETRA_TOKEN or `cetra login`
[env: CETRA_TOKEN]
-h, --help
Print help (see a summary with '-h')
Connect coding agents (Claude Code, Codex, Gemini CLI, Copilot, Pi, Qwen Code, OpenClaw, OpenCode, Goose, Oh My Pi) to cetra
Usage: cetra agents <COMMAND>
Commands:
setup Configure an agent to send its traces to cetra (writes the agent's user settings)
remove Remove what `cetra agents setup` wrote for an agent
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help
Configure an agent to send its traces to cetra (writes the agent's user settings)
Usage: cetra agents setup [OPTIONS] --url <URL> --key <KEY> <AGENT>
Arguments:
<AGENT>
Possible values:
- claude-code
- codex
- gemini-cli
- copilot
- pi: Pi: its extension file is written by setup; no hook (D-IN-28 item 9)
- qwen-code: Qwen Code: a Gemini CLI fork, set up like Gemini CLI (D-IN-28 item 7)
- openclaw: OpenClaw: setup installs its diagnostics plugin and merges its config (D-IN-28 items 5, 6)
- opencode: OpenCode: cetra's plugin and its config file are written by setup; no hook (D-IN-29)
- goose: Goose: setup prints its environment lines; no hook (D-IN-29)
- oh-my-pi: Oh My Pi: setup writes its .env lines; no hook (D-IN-29)
Options:
--url <URL>
cetra server URL, for example `https://cetra.example.com`
--key <KEY>
Project secret key with the `ingest` scope. A value given as a flag is visible to other local users in the process list; prefer CETRA_INGEST_KEY
[env: CETRA_INGEST_KEY]
--user <USER>
The person to attribute sessions to (default: `git config --global user.email`)
--no-content
Do not turn on prompt and tool content capture
--print
Print the merged settings files (including the key and any other settings in them) instead of writing them
-h, --help
Print help (see a summary with '-h')
Remove what `cetra agents setup` wrote for an agent
Usage: cetra agents remove <AGENT>
Arguments:
<AGENT>
Possible values:
- claude-code
- codex
- gemini-cli
- copilot
- pi: Pi: its extension file is written by setup; no hook (D-IN-28 item 9)
- qwen-code: Qwen Code: a Gemini CLI fork, set up like Gemini CLI (D-IN-28 item 7)
- openclaw: OpenClaw: setup installs its diagnostics plugin and merges its config (D-IN-28 items 5, 6)
- opencode: OpenCode: cetra's plugin and its config file are written by setup; no hook (D-IN-29)
- goose: Goose: setup prints its environment lines; no hook (D-IN-29)
- oh-my-pi: Oh My Pi: setup writes its .env lines; no hook (D-IN-29)
Options:
-h, --help
Print help (see a summary with '-h')