# neodesk recordings

Quelle: https://docs.neode.sk/de/command-line/reference/recordings/
Zuletzt geändert: 2026-12-03

> 14 Befehle. Sitzungsaufzeichnungen auf dem Server: auflisten, herunterladen, löschen, Sperren (Legal Hold), Regeln und Speicher.

Sitzungsaufzeichnungen auf dem Server: auflisten, herunterladen, löschen, Sperren (Legal Hold), Regeln und Speicher.

Die Befehle stehen hier auf Englisch, so wie die Kommandozeile sie mit `neodesk recordings --help` zeigt. Die Flags, die jeder Befehl kennt, stehen in der [Befehlsreferenz](https://docs.neode.sk/de/command-line/reference.md#flags-for-every-command).

## neodesk recordings delete

Delete a recording and its file.

A recording under a legal hold is refused until the hold is lifted (recordings release).

```text quoted
neodesk recordings delete <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The recording ID |

Needs recording.delete; changes something: needs a token with read and write access; deletes or ends something for good, so it asks first unless --yes is given. Calls `DELETE /api/recordings/{id}`.

## neodesk recordings download

Download a recording as a file (use --output): WebM or MP4 video, or a terminal session as asciicast text.

Each download is in the audit log.

```text quoted
neodesk recordings download <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The recording ID |

Needs recording.download; only reads. Calls `GET /api/recordings/{id}/download`.

```bash quoted
neodesk recordings download 3f2a... --output session.webm
```

## neodesk recordings hold

Put a recording on legal hold, with a reason, or change the reason of a hold.

A held recording is kept past its retention and can't be deleted until the hold is lifted. Setting and changing a hold are in the audit log with the reason.

```text quoted
neodesk recordings hold <id> --reason REASON [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The recording ID |

| Flag | What it is |
|---|---|
| `--reason REASON` | why the recording is held, at most 500 characters (required) |

Needs recording.hold; changes something: needs a token with read and write access. Calls `PUT /api/recordings/{id}/hold`.

```bash quoted
neodesk recordings hold 3f2a... --reason "Case 2026-17, keep until the court decides"
```

## neodesk recordings list

List recordings, newest first: device, person, kind, length and size.

Only recordings of the devices you see. Times are milliseconds since 1970 (UTC); --json shows every field.

```text quoted
neodesk recordings list [flags]
```

| Flag | What it is |
|---|---|
| `--device DEVICE` | only devices whose ID or name contains this |
| `--person PERSON` | only recordings by accounts whose name contains this |
| `--from FROM` | started on or after this date (2026-11-29) or time (RFC 3339) |
| `--to TO` | started on or before this date or time |
| `--device-id DEVICE_ID` | only this device |
| `--session-id N` | only this connection session |
| `--held true\|false` | true: only recordings under a legal hold, false: only those without one |
| `--limit N` | how many, 1 to 500 (default 100) |
| `--offset N` | skip this many |

Needs recording.view; only reads. Calls `GET /api/recordings`.

```bash quoted
neodesk recordings list --device reception --from 2026-11-01
neodesk recordings list --person anna --json
neodesk recordings list --held true
```

## neodesk recordings release

Lift the legal hold of a recording: its retention applies again and it can be deleted.

Lifting a hold is in the audit log with the reason the hold had.

```text quoted
neodesk recordings release <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The recording ID |

Needs recording.hold; changes something: needs a token with read and write access. Calls `DELETE /api/recordings/{id}/hold`.

## neodesk recordings rule

Show whether sessions to a device are recorded: off, on request or always, and where that comes from.

```text quoted
neodesk recordings rule --device-id DEVICE_ID [flags]
```

| Flag | What it is |
|---|---|
| `--device-id DEVICE_ID` | the device (required) |

Needs device.connect or remote_target.connect or agent.terminal or cdap.terminal or mesh.terminal; only reads. Calls `GET /api/recordings/rule`.

## neodesk recordings rule-delete

Remove a recording rule: the wider rule applies again.

```text quoted
neodesk recordings rule-delete <scope> [flags]
```

| Argument | What it is |
|---|---|
| `<scope>` | server, org, group or device |

| Flag | What it is |
|---|---|
| `--scope-id SCOPE_ID` | the organization ID, device group GUID or device ID |

Needs recording.manage; changes something: needs a token with read and write access; deletes or ends something for good, so it asks first unless --yes is given. Calls `DELETE /api/recordings/rules/{scope}`.

## neodesk recordings rule-set

Set a recording rule: off, on request or always, the watermark, and for the server or an organization the retention in days.

A device's rule wins over its groups' (the strictest group wins), then its organization's, then the server's. The watermark is resolved the same way, and among groups on wins over off. Saving a rule replaces it: a value left out is taken from the wider rule. Retention 0 keeps recordings until someone deletes them.

```text quoted
neodesk recordings rule-set --scope server|org|group|device [flags]
```

| Flag | What it is |
|---|---|
| `--scope server\|org\|group\|device` | what the rule is for (required) |
| `--scope-id SCOPE_ID` | the organization ID, device group GUID or device ID (not for server) |
| `--mode off\|on_request\|always` | off, on_request or always; left out keeps only a retention |
| `--watermark on\|off` | on or off: the browser viewer shows the operator's name, the time and the device ID over the picture and in the recording; left out takes the wider rule's |
| `--retention-days N` | days to keep recordings (server and org only), 0 for until deleted |

Needs recording.manage; changes something: needs a token with read and write access. Calls `PUT /api/recordings/rules`.

```bash quoted
neodesk recordings rule-set --scope org --scope-id acme --mode always --retention-days 30
```

## neodesk recordings rules

List the recording rules of the server, organizations, device groups and devices.

```text quoted
neodesk recordings rules [flags]
```

Needs recording.manage or recording.view; only reads. Calls `GET /api/recordings/rules`.

## neodesk recordings show

Show one recording.

```text quoted
neodesk recordings show <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The recording ID |

Needs recording.view; only reads. Calls `GET /api/recordings/{id}`.

## neodesk recordings storage

Show where recordings are kept, the size cap and the usage, and try the storage.

```text quoted
neodesk recordings storage [flags]
```

Needs server.config; only reads. Calls `GET /api/recordings/storage`.

## neodesk recordings storage-check

Try the storage: write, read and remove a small file.

```text quoted
neodesk recordings storage-check [flags]
```

Needs server.config; changes something: needs a token with read and write access. Calls `POST /api/recordings/storage/check`.

## neodesk recordings storage-set

Change where recordings are kept, encryption and the size cap.

Recordings that exist stay where they are. For S3 give the bucket with -F s3='{"endpoint":"https://s3.example.com","region":"eu-central-1","bucket":"recordings","prefix":"","path_style":true,"access_key":"..."}' and the secret with --s3-secret.

```text quoted
neodesk recordings storage-set [flags]
```

| Flag | What it is |
|---|---|
| `--storage folder\|s3` | folder or s3 |
| `--folder FOLDER` | an absolute path; empty for the folder beside the database |
| `--s3-secret-stdin` | read the s3 secret from standard input (its first line), so it stays out of the command line |
| `--s3-secret S3_SECRET` | the S3 secret key, stored encrypted; prefer --s3-secret-stdin |
| `--encrypt` | encrypt new recordings with the recordings key |
| `--cap-bytes N` | the size cap in bytes, 0 for none |
| `--warn-percent N` | warn at this share of the cap, 1 to 99 (default 90) |

Needs server.config; changes something: needs a token with read and write access. Calls `PUT /api/recordings/storage`.

## neodesk recordings usage

Show what the recordings take on the storage against the size cap.

```text quoted
neodesk recordings usage [flags]
```

Needs server.config or metrics.view or recording.view; only reads. Calls `GET /api/recordings/usage`.
