Skip to main content

Usage

tm logs [OPTIONS] DEPLOYMENT_ID

Examples

Fetch logs for a deployment from the Control Plane.

tm logs DEPLOYMENT_ID

Fetch newest logs first while still sending the published LOG_DIRECTION enum upstream.

tm logs DEPLOYMENT_ID --direction desc

Arguments

NameTypeRequiredDefaultDetails
deployment_idtextyesMetavar: DEPLOYMENT_ID.

Options

NameTypeRequiredDefaultDetails
-f, --followbooleannofalseFollow logs (polls periodically). Boolean flag.
--intervalfloatno2.0Polling interval in seconds when following.
--user-idtextnoOptional user id to scope results.
--start-timetextnoStart time (RFC3339 / timestamp) depending on API.
--end-timetextnoEnd time (RFC3339 / timestamp) depending on API.
--limitintegernoMax number of log lines/events.
--direction`choice[ascdescLOG_DIRECTION_UNSPECIFIEDLOG_DIRECTION_FORWARDLOG_DIRECTION_BACKWARD]`noSort direction. Accepts friendly aliases asc/desc or LOG_DIRECTION_* values.
--timeoutfloatnoHTTP timeout in seconds.

Inherited Global Options

NameTypeRequiredDefaultDetails
--version, -VbooleannofalseShow the version and exit. Boolean flag.
--configpathno"~/.config/tensormesh/config.toml"Path to config TOML file
--output`choice[textjsonyamlrawtable]`no"text"Output format (text is human-readable; json is machine-friendly).
--quietbooleannofalseSuppress non-essential output. Boolean flag.
--debugbooleannofalsePrint debug logs to stderr (secrets redacted). Boolean flag.
--ca-bundlepathnoPath to a PEM CA bundle for TLS verification (overrides TENSORMESH_CA_BUNDLE).
--max-retriesintegernoMax retries for idempotent HTTP requests on transient errors (overrides TENSORMESH_MAX_RETRIES; subcommands may override).
--controlplane-basetextnoOverride the Control Plane base URL.
--gateway-providertextnoInference 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