> ## 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.

# Run your first Octoparse CLI task

> Find and validate an Octoparse task, run a limited local extraction, inspect collected rows, and export the result with a short CLI workflow.

This guide walks through the shortest complete CLI workflow: find a task, run it locally, check the result, and export the data.

Before you begin, complete [Installation](https://www.octoparse.com/docs/en/cli/quick-start/installation.md) and [Authentication](https://www.octoparse.com/docs/en/cli/quick-start/get-api-key-and-log-in.md).

## Find a task

List tasks available to your account:

```bash theme={null}
octoparse task list
```

Use JSON output when you need to copy an exact task ID:

```bash theme={null}
octoparse task list --limit 10 --json
```

Inspect the selected task:

```bash theme={null}
octoparse task show <taskId> --json
octoparse task validate <taskId>
```

## Run the task locally

```bash theme={null}
octoparse run <taskId>
```

For a small first run, stop after a limited number of rows:

```bash theme={null}
octoparse run <taskId> --max-rows 20
```

On a server or in automation, use an independent headless browser:

```bash theme={null}
octoparse run <taskId> --headless --max-rows 20 --json
```

> [!NOTE]
>
> Local browser-based extraction supports macOS x64/arm64, Windows x64, and Linux x64. Linux arm64 is not supported.

## Check the result

View local history and row counts:

```bash theme={null}
octoparse data history <taskId> --source local --json
octoparse data count <taskId> --source local
octoparse data preview <taskId> --source local --limit 5
```

## Export the data

```bash theme={null}
octoparse data export <taskId> --source local --format xlsx
```

Choose another format or file name:

```bash theme={null}
octoparse data export <taskId> --source local --format csv --file result.csv
```

Supported formats are `xlsx`, `csv`, `html`, `json`, and `xml`.

## Optional: run in the cloud

```bash theme={null}
octoparse cloud start <taskId>
octoparse cloud status <taskId> --json
```

Cloud Extraction runs on Octoparse infrastructure and does not require the local browser process to remain open.

## Continue learning

> [card] [Manage tasks and groups](https://www.octoparse.com/docs/en/cli/guides/tasks-and-groups.md)
>
> Copy, rename, move, delete, and organize tasks.

> [card] [Configure browser modes](https://www.octoparse.com/docs/en/cli/guides/browser-modes.md)
>
> Reuse a signed-in Chrome or Edge profile when needed.

> [card] [Control local runs](https://www.octoparse.com/docs/en/cli/guides/local-runs.md)
>
> Detach, pause, resume, stop, and inspect local runs.

> [card] [Run and schedule cloud tasks](https://www.octoparse.com/docs/en/cli/guides/cloud-runs-and-schedules.md)
>
> Manage cloud history and recurring schedules.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.