Documentation Index
Fetch the complete documentation index at: https://docs.tensormesh.ai/llms.txt
Use this file to discover all available pages before exploring further.
Usage
tm logs [OPTIONS] DEPLOYMENT_ID
Examples
Fetch logs for a deployment from the Control Plane.
Fetch newest logs first while still sending the published LOG_DIRECTION enum upstream.
tm logs DEPLOYMENT_ID --direction desc
Arguments
| Name | Type | Required | Default | Details |
|---|
deployment_id | text | yes | | Metavar: DEPLOYMENT_ID. |
Options
| Name | Type | Required | Default | Details | | | | |
|---|
-f, --follow | boolean | no | false | Follow logs (polls periodically). Boolean flag. | | | | |
--interval | float | no | 2.0 | Polling interval in seconds when following. | | | | |
--user-id | text | no | | Optional user id to scope results. | | | | |
--start-time | text | no | | Start time (RFC3339 / timestamp) depending on API. | | | | |
--end-time | text | no | | End time (RFC3339 / timestamp) depending on API. | | | | |
--limit | integer | no | | Max number of log lines/events. | | | | |
--direction | `choice[asc | desc | LOG_DIRECTION_UNSPECIFIED | LOG_DIRECTION_FORWARD | LOG_DIRECTION_BACKWARD]` | no | | Sort direction. Accepts friendly aliases asc/desc or LOG_DIRECTION_* values. |
--timeout | float | no | | HTTP timeout in seconds. | | | | |
Inherited Global Options
| Name | Type | Required | Default | Details | | | | |
|---|
--version, -V | boolean | no | false | Show the version and exit. Boolean flag. | | | | |
--config | path | no | "~/.config/tensormesh/config.toml" | Path to config TOML file | | | | |
--output | `choice[text | json | yaml | raw | table]` | no | "text" | Output format (text is human-readable; json is machine-friendly). |
--quiet | boolean | no | false | Suppress non-essential output. Boolean flag. | | | | |
--debug | boolean | no | false | Print debug logs to stderr (secrets redacted). Boolean flag. | | | | |
--ca-bundle | path | no | | Path to a PEM CA bundle for TLS verification (overrides TENSORMESH_CA_BUNDLE). | | | | |
--max-retries | integer | no | | Max retries for idempotent HTTP requests on transient errors (overrides TENSORMESH_MAX_RETRIES; subcommands may override). | | | | |
--controlplane-base | text | no | | Override the Control Plane base URL. | | | | |
--gateway-provider | text | no | | Inference Gateway provider for built-in host selection (nebius, lambda, yotta). | | | | |
Caveats
asc maps to LOG_DIRECTION_FORWARD and desc maps to LOG_DIRECTION_BACKWARD before the request is sent.
Parent Command