> ## Documentation Index
> Fetch the complete documentation index at: https://www.octoparse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 데이터 확인 및 내보내기

> 로컬 또는 클라우드 추출 기록을 확인하고 행을 계산 및 미리 본 다음 Octoparse 작업 데이터를 XLSX, CSV, HTML, JSON 또는 XML로 내보내세요.

`data` 명령은 로컬 및 클라우드 추출 결과를 위한 통합 인터페이스를 제공합니다.

## 데이터 소스 선택

`--source local|cloud`를 사용하세요. 기본 소스는 `local`이며 `--local`과 `--cloud`도 별칭으로 계속 지원됩니다.

## 추출 기록 보기

```bash theme={null}
octoparse data history <taskId> --source local --json
octoparse data history <taskId> --source cloud --json
```

사용자 지정 결과물 디렉터리로 만든 로컬 실행에는 동일한 경로를 전달하세요.

```bash theme={null}
octoparse data history <taskId> --source local --output ./runs
```

## 행 수 계산

```bash theme={null}
octoparse data count <taskId> --source local
octoparse data count <taskId> --source cloud --unexported --json
```

## 행 미리보기

```bash theme={null}
octoparse data preview <taskId> --source local --limit 20
octoparse data preview <taskId> --source cloud --limit 20 --offset 0
octoparse data preview <taskId> --source cloud --unexported --json
```

`--offset`을 지정하지 않으면 최신 행이 반환됩니다. `--unexported`는 클라우드에서 내보내지 않은 행을 내보낸 것으로 표시하지 않고 읽습니다.

## 결과 내보내기

```bash theme={null}
octoparse data export <taskId> --source local --format xlsx
octoparse data export <taskId> --source cloud --format csv --file result.csv
octoparse data export <taskId> --source local --lot-id <lotId> --format json
```

지원 형식은 `xlsx`, `csv`, `html`, `json`, `xml`입니다.

`--format`을 생략하면 `--file`에서 형식을 추론할 수 없는 경우 CLI는 `xlsx`를 사용합니다. `--file`을 생략하면 기존 파일을 덮어쓰지 않고 `task-name.<format>`을 생성합니다.

## 로컬 출력 디렉터리

실행, 기록 및 내보내기 경로를 일관되게 유지하세요.

```bash theme={null}
octoparse run <taskId> --detach --output ./runs
octoparse data history <taskId> --source local --output ./runs
octoparse data export <taskId> --source local --output ./runs --format xlsx
```

빈 파일과 지원하지 않는 형식은 [문제 해결](../reference/troubleshooting#export-errors)을 참고하세요.
