> 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-overview-and-output-modes.md).

# CLI 개요와 출력 모드

Unitlab CLI(unitlab 명령)가 다루는 작업, 명령 그룹 구성, 자격 증명 설정, 기본 출력과 --json 출력을 읽는 방법을 정리한 개요입니다.

`unitlab` 명령은 Python 패키지와 함께 설치됩니다. 업로드, 처리 상태 확인, 라이브러리 데이터, 데이터셋, 워크플로 작업, 릴리스, 온톨로지, 클라우드 스토리지, 임베딩을 다룹니다. 셸 스크립트, CI 작업, 일회성 관리 작업에 사용합니다.

```bash
python -m pip install unitlab
unitlab --version
unitlab --help
unitlab release create --help
```

## 명령 그룹 <a href="#command-groups" id="command-groups"></a>

| 그룹                                  | 하는 일                                                            |
| ----------------------------------- | --------------------------------------------------------------- |
| `unitlab configure`                 | API 키와 URL 저장                                                   |
| `unitlab project`                   | 프로젝트 생성, 수정, 삭제. 업로드, 클라우드에서 가져오기, 연결. Data Unit 목록. LiDAR 씬 상태 |
| `unitlab batch-queue`               | 업로드 처리 상황 추적                                                    |
| `unitlab assets`, `unitlab folders` | 라이브러리 파일, 사용자 지정 메타데이터, 폴더, 클라우드 동기화, Data Groups               |
| `unitlab dataset`                   | 초안과 게시된 버전                                                      |
| `unitlab workflow`                  | 단계와 작업: 가져오기(claim), 할당, 제출, 승인, 반려, 이동                         |
| `unitlab release`                   | 릴리스 생성, 대기, 다운로드                                                |
| `unitlab ontology`, `unitlab cloud` | 온톨로지와 클라우드 스토리지 연결                                              |
| `unitlab embeddings`                | 임베딩 공간, 벡터, 검색                                                  |

모든 명령과 옵션은 [CLI 명령 레퍼런스](https://docs.unitlab.ai/api-sdk-cli/ko/clis/cli-command-reference.md)에 있습니다.

## 자격 증명 <a href="#credentials" id="credentials"></a>

모든 명령은 `--api-key`를 받습니다. 지정하지 않으면 CLI는 `UNITLAB_API_KEY`를 읽고, 그다음 `unitlab configure`로 저장한 키를 읽습니다. 전용 배포 환경에서는 `UNITLAB_API_URL`을 설정합니다. [인증과 API 키](https://docs.unitlab.ai/api-sdk-cli/ko/get-started/authentication-and-api-keys.md)를 참고하세요.

키가 셸 기록에 남지 않도록 `--api-key`보다 환경 변수를 사용하는 것이 좋습니다.

## 출력 <a href="#output" id="output"></a>

| 모드        | 형태                    | 용도             |
| --------- | --------------------- | -------------- |
| 기본, 목록    | 항목마다 `key=value` 한 줄  | 터미널에서 읽기       |
| 기본, 단일 객체 | 필드마다 `key: value` 한 줄 | 터미널에서 읽기       |
| `--json`  | 들여쓰기된 JSON            | 스크립트, `jq`와 함께 |

```bash
unitlab project list
# id=7c9e6679-...  name=Warehouse picks  data_item_count=52

unitlab project list --json | jq -r '.[] | .id + "\t" + .name'
```

`batch-queue wait`는 항상 JSON을 출력합니다. `release download`는 저장한 경로를 출력합니다. 진행률 표시줄은 표준 오류로 출력되며 터미널에서만 나타납니다.

## 셸 자동 완성 <a href="#shell-completion" id="shell-completion"></a>

```bash
unitlab --install-completion
```

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

[CLI 빠른 시작](https://docs.unitlab.ai/api-sdk-cli/ko/get-started/cli-quickstart.md) · [CLI 자동화와 종료 동작](https://docs.unitlab.ai/api-sdk-cli/ko/clis/cli-automation-and-exit-behavior.md) · [CLI 명령 레퍼런스](https://docs.unitlab.ai/api-sdk-cli/ko/clis/cli-command-reference.md)
