CLI options
The CLI indepths.cli.cli
manages a local OTLP/HTTP server (depths.cli.app:app
) and your on-disk instance layout. This page explains every command, its flags, defaults, and short examples for macOS/Linux and Windows (PowerShell).
Tip: See depths <command> --help
any time for built-in usage.
depths
init
Initialize a new on-disk instance. Creates the directory layout and baseline config by instantiating depths.core.logger.DepthsLogger
once.
Synopsis
Options
Flag | Type | Default | Description |
---|---|---|---|
--instance-id , -I | string | default | Logical instance id (used as folder name under --dir ). |
--dir , -D | path | ./depths_data | Root directory where the instance lives. |
Examples
depths
start
Start the OTLP/HTTP server (FastAPI + Uvicorn) for an instance.
Synopsis
Options
Flag | Type | Default | Description |
---|---|---|---|
--instance-id , -I | string | default | Instance to serve. |
--dir , -D | path | ./depths_data | Root directory for the instance. |
--host , -H | string | 0.0.0.0 | Bind host for OTLP/HTTP. |
--port , -P | int | 4318 | Bind port (OTLP/HTTP default). |
--reload , -R | bool | false | Code reload. Only supported with --foreground . |
--foreground , -F | bool | false | Run in the current terminal (not daemonized). |
Examples
depths
view
Pretty-print the latest rows from a persisted OTel table (from local or S3, depending on --storage
and your environment).
Synopsis
Options
Flag | Type | Default | Description | ||
---|---|---|---|---|---|
--instance-id , -I | string | default | Instance to read from. | ||
--dir , -D | path | ./depths_data | Root directory for the instance. | ||
--storage , -S | enum | auto | Source: auto | local | s3 . |
--rows , -n | int | 10 | Show latest N rows by event_ts . | ||
--table , -t | enum | — | One of: spans , span_events , span_links , logs , metrics_points , metrics_hist . If omitted, a picker is shown. | ||
--select , -s | repeatable | — | Project specific columns (repeat -s for multiple). | ||
--date-from | YYYY-MM-DD | — | Start day (UTC, inclusive). | ||
--date-to | YYYY-MM-DD | — | End day (UTC, inclusive). |
Examples
depths
status
Query the running server’s /healthz
and render producer/aggregator stats.
Synopsis
Options
Flag | Type | Default | Description |
---|---|---|---|
--host , -H | string | 127.0.0.1 | Server host to probe. |
--port , -P | int | 4318 | Server port to probe. |
--timeout , -T | float | 5.0 | HTTP timeout in seconds. |
Examples
depths
stop
Stop a background server for an instance. Reads the pidfile written by start
, sends a graceful terminate, and escalates when needed.
Synopsis
Options
Flag | Type | Default | Description |
---|---|---|---|
--instance-id , -I | string | default | Instance to stop. |
--dir , -D | path | ./depths_data | Root directory for the instance. |
--force , -F | bool | false | Force kill if graceful stop fails. If SIGKILL is not available on your OS, the CLI falls back to SIGTERM . |