Before You Use tm
- Install the CLI first if
tmis not already on yourPATH. In this repo checkout, use./.venv/bin/tmuntil your shell already exposestm. - Start with
tm initif you are not sure what is already configured locally. - Use
tm auth loginfollowed bytm init --syncfor the standard persistent On-Demand setup flow. - Put global options such as
--output jsonbefore the subcommand. - Set
TM_CONFIG_HOMEwhen you need an alternate config and auth root for local scripting. - Use
tm auth status,tm infer doctor, andtm doctorfor local readiness checks. - Use
tm auth whoamifor a live Control Plane auth check andtm infer chatfor an end-to-end inference check.
Usage
Examples
Inspect local setup and print the shortest path to a working request.
Inspect gateway readiness before the first request.
Inspect local Control Plane and inference auth state.
Send a basic chat request after the standard On-Demand setup flow.
Details
Tensormesh CLI for Control Plane and Inference API workflows.Subcommands
tm activities: Activities (Control Plane).tm admin: Admin-only commands (Control Plane).tm auth: Authenticate to the Tensormesh Control Plane.tm billing: Billing and usage (Control Plane).tm completion: Print a shell completion script for Bash/Zsh/Fish.tm config: Manage Tensormesh CLI configuration.tm doctor: Diagnose configuration and credentials.tm infer: Inference commands for shared serverless and On-Demand OpenAI-compatible endpoints.tm init: Guide first-time CLI setup for Control Plane and Gateway workflows.tm logs: Fetch deployment logs (GET /v1/observability/deployments/{deploymentId}/logs).tm metrics: Observability metrics (Control Plane).tm models: Control Plane model resources.tm products: Products (Control Plane).tm reserved-deployments: Reserved deployments (Support; Control Plane).tm tickets: Support tickets (Control Plane).tm users: User profile resources (Control Plane).tm version: Show CLI version and runtime details.
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). | |||||
--timeout | float | no | Default HTTP timeout in seconds (overrides TENSORMESH_TIMEOUT_SECONDS; subcommands may override). | |||||
--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). |
Environment Variables
TENSORMESH_CA_BUNDLETENSORMESH_TIMEOUT_SECONDSTENSORMESH_MAX_RETRIESTM_CONFIG_HOME

