> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/api-sdk-cli/de/clis/cli-assets-and-folders.md).

# CLI: Assets und Ordner

Unitlab-CLI für Assets: Dateien in die Bibliothek hochladen, Metadaten setzen, Ordner verwalten, Cloud-Ordner synchronisieren und Data Groups bilden.

## In die Bibliothek hochladen <a href="#upload-to-the-library" id="upload-to-the-library"></a>

```bash
unitlab assets upload ./cell-04 --folder "Robot cell 04" --tag site-berlin --tag 2026-11 \
  --custom-metadata '{"robot": "UR10e", "shift": "night"}' --json
```

| Option                                            | Verwendung                                                           |
| ------------------------------------------------- | -------------------------------------------------------------------- |
| `--folder` oder `--folder-id`                     | Zielordner per Name (wird erstellt oder wiederverwendet) oder per ID |
| `--path`                                          | Unterordnerpfad im Zielordner                                        |
| `--tag`                                           | Für mehrere Tags wiederholen                                         |
| `--custom-metadata` oder `--custom-metadata-file` | Ein JSON-Objekt für jede Datei                                       |
| `--type`                                          | Typ erzwingen, etwa `pointcloud`                                     |
| `--dry-run`, `--split-sensor-folders`             | LiDAR-Szenen                                                         |

## Verarbeitung und Metadaten <a href="#processing-and-metadata" id="processing-and-metadata"></a>

```bash
unitlab assets status "$ASSET_ID"
unitlab assets retry "$ASSET_ID"
unitlab assets set-metadata "$ASSET_ID" --custom-metadata '{"lighting": "low"}'
unitlab assets set-metadata "$ASSET_ID" --custom-metadata null
```

`set-metadata` ersetzt das gesamte Objekt. `null` löscht es.

## Ordner <a href="#folders" id="folders"></a>

```bash
FOLDER_ID=$(unitlab folders create "Robot cell 04" --json | jq -r .id)
unitlab folders create cam_front --parent "$FOLDER_ID"
unitlab folders list --parent "$FOLDER_ID"
unitlab folders items "$FOLDER_ID" --json
unitlab folders detail "$FOLDER_ID"
```

Ein Cloud-Ordner spiegelt ein Bucket-Präfix:

```bash
INCOMING=$(unitlab folders create Incoming --cloud-storage "$CLOUD_STORAGE_ID" --prefix fleet/incoming/ --json | jq -r .id)
unitlab folders sync-cloud "$INCOMING"
```

## Data Groups <a href="#data-groups" id="data-groups"></a>

```bash
unitlab assets group "$FOLDER_ID" --preview                    # show the suggested pattern
unitlab assets group "$FOLDER_ID"                              # group with the suggestion
unitlab assets group "$FOLDER_ID" --template "{cell}_{frame}_{view}" \
  --tile-values "view=front,left,right,wrist" --preview      # estimate a pattern
unitlab assets group "$FOLDER_ID" --config grouping.json       # a saved configuration
```

`--tile-values` erwartet `field=value1,value2`; wiederholen Sie die Option für mehrere Felder. Die Konfigurationsschlüssel finden Sie unter [Data-Group-Automatisierung](https://docs.unitlab.ai/api-sdk-cli/de/sdks/data-group-automation.md).

## Verwandte Themen <a href="#related" id="related"></a>

[Assets und benutzerdefinierte Metadaten](https://docs.unitlab.ai/api-sdk-cli/de/sdks/assets-and-custom-metadata.md) · [Ordner](https://docs.unitlab.ai/api-sdk-cli/de/sdks/folders.md)
