mix lei.cache.export (LowEndInsight v0.9.1)

Copy Markdown View Source

Export LEI analysis reports as an OCI-compatible cache artifact for Zarf.

Analyzes the given repositories, exports results as cache files, and optionally pushes to an OCI registry.

Usage

mix lei.cache.export <repo_urls_file> [options]
mix lei.cache.export --input <jsonl_file> [options]

Options

  • --output / -o - Output directory (default: ./lei-cache-YYYY-MM-DD)
  • --input / -i - Import existing JSONL report file instead of analyzing
  • --registry / -r - OCI registry to push to (e.g., ghcr.io/defenseunicorns/lei-cache)
  • --tag / -t - Additional tag (date and latest are automatic)
  • --token - Registry auth token (or set LEI_REGISTRY_TOKEN env var)
  • --date - Override date tag (default: today's date)
  • --push - Push to registry after packaging (default: false)

Examples

# Export from analysis of repos listed in file
mix lei.cache.export repos.txt -o ./cache-export

# Export from existing JSONL and push to registry
mix lei.cache.export --input results.jsonl --push -r ghcr.io/defenseunicorns/lei-cache

# Export with custom date tag
mix lei.cache.export repos.txt --date 2026-02-05 --push -r ghcr.io/defenseunicorns/lei-cache