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

# Aufgaben lokal ausführen

> Führen Sie Octoparse-Aufgaben lokal aus, wählen Sie einen Browser, streamen Sie JSONL-Ereignisse, steuern Sie Läufe und exportieren Sie Ergebnisse.

`octoparse run` startet die lokale Extraktion mit der integrierten Octoparse-Engine. Die Desktop-Anwendung wird dafür nicht benötigt.

## Lauf im Vordergrund starten

```bash theme={null}
octoparse run <taskId>
octoparse run <taskId> --max-rows 100
octoparse run <taskId> --timeout-ms 600000
octoparse run <taskId> --headless
```

Verwenden Sie eine lokale Aufgabendefinition, anstatt eine Remote-Aufgabe abzurufen:

```bash theme={null}
octoparse run local-task --task-file task.json
```

Funktionale Befehle erfordern Anmeldedaten, auch Läufe mit lokalen Aufgabendateien.

## Browser auswählen

```bash theme={null}
octoparse run <taskId> --browser independent --headless
octoparse run <taskId> --browser user --browser-id chrome --profile "Default"
```

Einrichtung und Auswahlpriorität sind unter [Browsermodus auswählen](/docs/de/cli/guides/browser-modes) beschrieben.

## Maschinenlesbare Ereignisse streamen

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

`--jsonl` streamt Zeilen-, Protokoll-, CAPTCHA-, Proxy-, Download- und Lebenszyklusereignisse. Siehe [Ausgabe und Exit-Codes](../reference/output-and-exit-codes).

## Entkoppelten Lauf starten

```bash theme={null}
octoparse run <taskId> --detach --output ./runs
```

Übergeben Sie dasselbe `--output`-Verzeichnis, wenn Sie den Verlauf prüfen oder Ergebnisse exportieren.

## Lokalen Lauf steuern

```bash theme={null}
octoparse local status <taskId> --output ./runs
octoparse local pause <taskId>
octoparse local resume <taskId>
octoparse local stop <taskId>
octoparse local history <taskId> --output ./runs --json
octoparse local cleanup --json
```

Der lokale Status wird von dieser CLI verfolgt und nicht mit der Desktop-App synchronisiert.

## Lokale Ergebnisse exportieren

Bevorzugen Sie den einheitlichen Datenbefehl:

```bash theme={null}
octoparse data export <taskId> --source local --output ./runs --format xlsx
octoparse data export <taskId> --source local --lot-id <lotId> --format csv
```

`octoparse local export` bleibt aus Kompatibilitätsgründen verfügbar.

<Note>
  Die Befehlsgruppe `runs` dient zur internen Untersuchung von Artefakten. Benutzer-Workflows sollten Aufgaben-IDs mit `local` und `data` oder Lauf-IDs mit `data export` verwenden.
</Note>
