> 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/ko/clis/cli-assets-and-folders.md).

# CLI: 에셋과 폴더

Unitlab CLI로 터미널에서 라이브러리에 파일을 업로드하고, 사용자 지정 메타데이터를 설정하고, 폴더와 클라우드 폴더 동기화, Data Groups를 다루는 방법입니다.

## 라이브러리에 업로드 <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
```

| 옵션                                              | 용도                                    |
| ----------------------------------------------- | ------------------------------------- |
| `--folder` 또는 `--folder-id`                     | 대상 폴더를 이름(새로 만들거나 기존 폴더 사용) 또는 ID로 지정 |
| `--path`                                        | 대상 폴더 안의 하위 폴더 경로                     |
| `--tag`                                         | 태그가 여러 개이면 반복                         |
| `--custom-metadata` 또는 `--custom-metadata-file` | 모든 파일에 적용할 JSON 객체                    |
| `--type`                                        | `pointcloud` 등 유형을 강제로 지정             |
| `--dry-run`, `--split-sensor-folders`           | LiDAR 씬용                              |

## 처리와 메타데이터 <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`는 객체 전체를 교체합니다. `null`을 지정하면 메타데이터가 지워집니다.

## 폴더 <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"
```

클라우드 폴더는 버킷 접두사(prefix)를 그대로 반영합니다.

```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`는 `field=value1,value2` 형식을 받으며, 필드가 여러 개이면 반복합니다. 구성 키는 [Data Group 자동화](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/data-group-automation.md)를 참고하세요.

## 관련 문서 <a href="#related" id="related"></a>

[에셋과 사용자 지정 메타데이터](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/assets-and-custom-metadata.md) · [폴더](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/folders.md)
