> ## 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.

# Tensormesh CLI

> Guides and command reference for the `tm` CLI.

The Tensormesh CLI, `tm`, covers two surfaces:

* **Control Plane** workflows such as authentication, models, users, billing, support, logs, and metrics.
* **Inference API** workflows for OpenAI-compatible Serverless endpoints.

Use the guides below for end-to-end tasks. Use the generated reference pages when you need exact flags, arguments, and related commands.

The authentication guide covers both browser login and automation-safe token usage.

Install the CLI first with [Installation](/cli/guides/installation) if `tm` is
not already on your `PATH`. The examples below assume `tm` is available on your
`PATH`. If you are working from this repo checkout without activating a shell
that already exposes `tm`, use `./.venv/bin/tm`.

## Choose A Starting Path

Use the serverless path when you already know the model name you want:

```sh theme={null}
tm version
tm infer chat \
  --api-key YOUR_INFERENCE_API_KEY \
  --model YOUR_SERVERLESS_MODEL_NAME \
  --json '[{"role":"user","content":"Say hello."}]'
```

If you have Control Plane access for the same Tensormesh environment and need to discover a serverless model name first, run `tm auth login`, then [`tm billing pricing serverless list`](/cli/reference/billing/pricing/serverless/list), and copy the returned `pricing[].model` value.

For the other verified serverless endpoints, use the same `--api-key` and `--model` flow:

```sh theme={null}
tm infer models --api-key YOUR_INFERENCE_API_KEY
tm infer responses --api-key YOUR_INFERENCE_API_KEY --model YOUR_SERVERLESS_MODEL_NAME --json '{"input":"Say hello."}'
```

## Guides

* [Installation](/cli/guides/installation)
* [Getting Started](/cli/guides/getting-started)
* [Authentication](/cli/guides/authentication)
* [First Inference Request](/cli/guides/first-request)
* [Control Plane Workflows](/cli/guides/control-plane-workflows)
* [Config And Environment](/cli/guides/config-and-env)
* [Production Scripting](/cli/guides/production-scripting)
* [Admin Workflows](/cli/guides/admin-workflows)
* [Troubleshooting](/cli/guides/troubleshooting)

## Reference

* [Root Command](/cli/reference)
* [Version Command](/cli/reference/version)
* [Init Command](/cli/reference/init)
* [Auth Login](/cli/reference/auth/login)
* [Auth Status](/cli/reference/auth/status)
* [Auth Whoami](/cli/reference/auth/whoami)
* [Config Show](/cli/reference/config/show)
* [Infer Doctor](/cli/reference/infer/doctor)
* [Infer Chat](/cli/reference/infer/chat)
* [Infer Models](/cli/reference/infer/models)
* [Infer Responses](/cli/reference/infer/responses)
* [Serverless Pricing List](/cli/reference/billing/pricing/serverless/list)
* [Auth Commands](/cli/reference/auth)
* [Config Commands](/cli/reference/config)
* [Inference Commands](/cli/reference/infer)
* [Billing Commands](/cli/reference/billing)
* [Activities Commands](/cli/reference/activities)
* [Cost Command](/cli/reference/cost)
* [Metrics Commands](/cli/reference/metrics)
* [Users Commands](/cli/reference/users)
* [Products Commands](/cli/reference/products)
* [Tickets Commands](/cli/reference/tickets)
* [Reserved Deployments Commands](/cli/reference/reserved-deployments)
* [Admin Commands](/cli/reference/admin)
* [Doctor](/cli/reference/doctor)
