# olef collect

Source: https://olef.dev/docs/reference/cli/collect

Generated from **Olef 3.0.2**. [All commands](https://olef.dev/docs/reference/commands) · [Capabilities and requirements](https://olef.dev/docs/reference/capabilities)

These entries describe available commands, not a sequence to run. Check prerequisites before changing app, device, or cloud state. Global options are listed in the [command catalog](https://olef.dev/docs/reference/commands#global-options).

## olef collect

Gather a self-contained diagnostic bundle (doctor report, device info, recent logcat + crash buffer, and — if an existing server is reachable — screen dump, screenshot, current activity, app info) into a directory

```bash
olef collect --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `--app <APP>` | App package to scope the bundle to (defaults to the configured app) |
| `--out <OUT>` / `-o` | Output directory for the bundle (default: a timestamped temp dir) |
| `--no-screenshot` | Skip capturing a screenshot |
| `--redact-screenshots` | With global --redact enabled, black out accessibility bounds whose text matches the policy before writing screenshot.png |
| `--json` | Accepted for compatibility; output is always JSON. |
