> Markdown version of https://tuna.am/en/docs/cli/ssh-session/upload/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# tuna ssh-session upload

Upload SSH session recordings.

Usage

```bash
tuna ssh-session upload [session...] [flags]

```

Examples

```bash
tuna ssh-session upload <session_id>
tuna ssh-session upload --all
tuna ssh-session upload --last
tuna ssh-session upload <session_id> --force

```

| Flag               | Description                                                               |
| ------------------ | ------------------------------------------------------------------------- |
| `--all`            | Upload all finished sessions.                                             |
| `--api-key string` | Your tuna.am api key with the tunnels:connect scope (env `TUNA_API_KEY`). |
| `--force`          | Upload sessions that are already uploaded.                                |
| `--last`           | Upload the last finished session.                                         |
| `--tunnel string`  | Associate sessions with a tunnel UID.                                     |
| `--token string`   | Deprecated in 0.39: use `--api-key` instead.                              |

[Global flags](https://tuna.am/en/docs/cli.md#global-flags) work too.

## History

|        |                                                                                                         |
| ------ | ------------------------------------------------------------------------------------------------------- |
| 0.39.0 | Added the `--api-key` and `--force` flags.<br />Deprecated the `--token` flag: use `--api-key` instead. |
| 0.33.0 | Command added.                                                                                          |
