Skip to content

feat: add batch export for multiple benchmarks#7

Merged
aaronlippold merged 2 commits intomainfrom
feature/batch-export
Jan 29, 2026
Merged

feat: add batch export for multiple benchmarks#7
aaronlippold merged 2 commits intomainfrom
feature/batch-export

Conversation

@aaronlippold
Copy link
Member

Summary

  • Batch export: Export multiple benchmarks in a single command
  • Output directory: New --output-dir option for organized batch exports
  • Progress tracking: Shows [1/N] progress for each benchmark
  • Error resilience: Continues on individual failures with summary
  • Backward compatible: Single ID export works exactly as before
  • README docs fix: All links now point to GitHub Pages

Usage

# Export multiple benchmarks
cis-bench export 23598 22605 18208 --format yaml

# Export to specific directory
cis-bench export 23598 22605 --format xccdf --output-dir ./stig_exports

# Mixed: IDs and files
cis-bench export 23598 local_benchmark.json --format yaml

Test plan

  • 15 new TDD tests in tests/unit/test_batch_export.py
  • All 1121 tests passing
  • Backward compatibility tests for single ID export
  • Error handling tests (missing benchmarks, all failures)
  • Progress tracking tests
  • Output directory creation tests

Changes

File Change
src/cis_bench/cli/commands/export.py Refactored to support multiple identifiers
tests/unit/test_batch_export.py 15 new TDD tests
docs/user-guide/commands-reference.md Updated export command docs
README.md Fixed all doc links to GitHub Pages

- Export multiple benchmark IDs in single command
- Add --output-dir option for batch exports
- Progress tracking with [1/N] prefix
- Continue on individual failures with summary
- 15 new TDD tests in test_batch_export.py
- Backward compatible with single ID exports
- Update commands-reference.md documentation

Authored by: Aaron Lippold<lippold@gmail.com>
- Update all relative doc links to use full GitHub Pages URLs
- Add prominent link to https://mitre.github.io/cis-bench/
- Add batch export to current features list
- Fix Quick Links section at bottom

Authored by: Aaron Lippold<lippold@gmail.com>
@aaronlippold aaronlippold merged commit 9729c64 into main Jan 29, 2026
6 checks passed
@aaronlippold aaronlippold deleted the feature/batch-export branch January 29, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant