# `mix lei.export_cache`
[🔗](https://github.com/gtri/lowendinsight/blob/main/lib/mix/tasks/lei/export_cache.ex#L5)

Exports cached LowEndInsight analysis results to a portable bundle containing
a SQLite database, gzipped JSON Lines, a manifest, and SHA-256 checksums.

## Usage

    mix lei.export_cache [--output <dir>]

## Options

  * `--output` - Base directory for the export bundle (default: system tmp dir)

## Output Structure

    lei-cache-YYYY-MM-DD/
    ├── manifest.json
    ├── cache.db          # SQLite (queryable)
    ├── cache.jsonl.gz    # JSON Lines (streaming)
    └── checksums.sha256

## Examples

    mix lei.export_cache
    mix lei.export_cache --output /path/to/exports

## Scheduling

For nightly exports, schedule via cron:

    0 2 * * * cd /path/to/lei && mix lei.export_cache --output /exports

---

*Consult [api-reference.md](api-reference.md) for complete listing*
