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

# tm auth print-token

> Print the Control Plane access token to stdout (for scripting).

## Usage

```sh theme={null}
tm auth print-token [OPTIONS]
```

## Examples

### Print the current Control Plane bearer token for a controlled script.

```sh theme={null}
tm auth print-token --yes-i-know
```

## Options

| Name           | Type      | Required | Default | Details                                                                     |
| -------------- | --------- | -------- | ------- | --------------------------------------------------------------------------- |
| `--yes-i-know` | `boolean` | no       | `false` | Acknowledge that printing tokens may leak secrets (required). Boolean flag. |

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

## Auth Scope

* controlplane-access-token

## Prerequisites

* Run tm auth login first.
* Use a controlled shell environment that will not echo or log the token.

## Caveats

* Writes the raw bearer token to stdout.
* Prefer short-lived shell variables over copying tokens into files or shell history.

## Related Commands

* [`tm auth whoami`](/cli/reference/auth/whoami)
* [`tm auth login`](/cli/reference/auth/login)
* [`tm auth refresh`](/cli/reference/auth/refresh)

## Parent Command

* [`tm auth`](/cli/reference/auth)
