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

> Print a shell completion script for Bash/Zsh/Fish.

## Usage

```sh theme={null}
tm completion [OPTIONS] {bash|zsh|fish}
```

## Examples

### Print shell completion output for Zsh.

```sh theme={null}
tm completion zsh
```

## Details

Print a shell completion script for Bash/Zsh/Fish.

Examples:

source \<(tm completion bash)
source \<(tm completion zsh)
tm completion fish | source

## Arguments

| Name    | Type           | Required | Default | Details |   |                   |     |          |
| ------- | -------------- | -------- | ------- | ------- | - | ----------------- | --- | -------- |
| `shell` | \`choice\[bash | zsh      | fish]\` | yes     |   | Metavar: \`\{bash | zsh | fish}\`. |

## Options

| Name     | Type   | Required | Default | Details                                                  |
| -------- | ------ | -------- | ------- | -------------------------------------------------------- |
| `--prog` | `text` | no       | `"tm"`  | Program name to generate completions for (usually 'tm'). |

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

## Parent Command

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