# CLI Every cetra command and option, generated from the binary's own help. 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`. ## `cetra` ```text LLM observability server Usage: cetra 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 /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 ``` ### `cetra serve` ```text Start the HTTP server Usage: cetra serve [OPTIONS] Options: --config Config file. Overrides `CETRA_CONFIG` -h, --help Print help ``` ### `cetra admin` ```text Admin operations on this data directory (users, encryption key, deletions) Usage: cetra admin 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 ``` #### `cetra admin create-user` ```text Create a user Usage: cetra admin create-user [OPTIONS] --email Options: --email Email address --name Display name --password-stdin Read the password from one line of stdin --instance-admin Make the user an instance admin --config Config file. Overrides `CETRA_CONFIG` -h, --help Print help ``` #### `cetra admin reset-password` ```text Print a password reset URL Usage: cetra admin reset-password [OPTIONS] --email Options: --email Email address --config Config file. Overrides `CETRA_CONFIG` -h, --help Print help ``` #### `cetra admin list-users` ```text List users Usage: cetra admin list-users [OPTIONS] Options: --format `table` or `json` Possible values: - table: Aligned columns - json: The server's JSON, re-indented [default: table] --config Config file. Overrides `CETRA_CONFIG` -h, --help Print help (see a summary with '-h') ``` #### `cetra admin rotate-encryption-key` ```text 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 file. Overrides `CETRA_CONFIG` -h, --help Print help ``` #### `cetra admin reapply-deletions` ```text 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 Options: --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 file. Overrides `CETRA_CONFIG` -h, --help Print help ``` #### `cetra admin backup` ```text Back up the running server into DIR (online; the server writes DIR) Usage: cetra admin backup [OPTIONS] --to Options: --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 file. Overrides `CETRA_CONFIG` -h, --help Print help ``` #### `cetra admin gc-orphans` ```text 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 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 file. Overrides `CETRA_CONFIG` -h, --help Print help ``` #### `cetra admin migrate` ```text 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 file. Overrides `CETRA_CONFIG` -h, --help Print help ``` #### `cetra admin entitlements` ```text Org entitlements Usage: cetra admin entitlements 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 ``` ##### `cetra admin entitlements show` ```text Print an org's resolved entitlements Usage: cetra admin entitlements show [OPTIONS] Arguments: Org id or slug Options: --format `table` or `json` Possible values: - table: Aligned columns - json: The server's JSON, re-indented [default: table] --config Config file. Overrides `CETRA_CONFIG` -h, --help Print help (see a summary with '-h') ``` #### `cetra admin org-sso` ```text An org's single sign-on (track P M5) Usage: cetra admin org-sso 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 ``` ##### `cetra admin org-sso disable` ```text 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] Arguments: Org id or slug Options: --config Config file. Overrides `CETRA_CONFIG` -h, --help Print help ``` ### `cetra version` ```text Print the cetra version Usage: cetra version Options: -h, --help Print help ``` ### `cetra health` ```text Exit 0 if the server answers `GET /readyz` with 200 (the container healthcheck) Usage: cetra health [OPTIONS] Options: --url Server URL [default: http://127.0.0.1:8080] -h, --help Print help ``` ### `cetra debug-bundle` ```text 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 file. Overrides `CETRA_CONFIG` --output Where to write the file. Default: `cetra-debug-.json` in the current directory. `-` writes it to stdout. An existing file is never overwritten -h, --help Print help ``` ### `cetra login` ```text 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 Options: --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') ``` ### `cetra logout` ```text Revoke the saved personal access token Usage: cetra logout [OPTIONS] Options: --url Server URL. Required when more than one server is saved -h, --help Print help ``` ### `cetra query` ```text Run a SQL query on a project Usage: cetra query [OPTIONS] --project [SQL] Arguments: [SQL] The SQL statement, with optional {name:Type} parameters. Put `--` before a statement that starts with `-` Options: --file Read the statement from a file; `-` reads stdin --project Project UUID or org-slug/project-slug [env: CETRA_PROJECT=] --param A parameter value; repeat for each parameter. Int and Timestamp values that are all digits are sent as integers (Timestamp: epoch milliseconds) --from