Skip to main content

πŸ§ͺ Repo CLI Agent β€” For Repository-Wide Coverage

The Early CLI for Repository lets you generate unit tests across entire folders in your codebase β€” making it the fastest way to raise coverage across legacy code or large areas of your app.


πŸ“Œ When to Use​

Use the Repo CLI Agent when:

  • You want a one-time coverage boost across a folder
  • You're onboarding a legacy service or utility layer
  • You want to run weekly or monthly coverage maintenance
  • You’re using GitHub, Bitbucket, or another supported SCM
  • You want to integrate with Jenkins, CircleCI, or GitHub Actions

β†’ When to Use Which Agent β†’


βš™οΈ How It Works​

  1. You specify a folder using --folder ./src/utils
  2. The CLI scans files recursively in that folder
  3. Runs your configured coverage command
  4. Identifies low or zero-covered functions
  5. Generates tests using AI (Jest, Mocha, etc.)
  6. Optionally commits results (AUTO_COMMIT=true)

β†’ Command: early generate-folder
β†’ Configure via CLI flags or environment variables


πŸ” Requirements​

To use this agent:


πŸ§ͺ First Integration Step​

See full setup here β†’ Integration Guide

early generate-folder \
--folder ./src/api \
--token $TOKEN \
--api-key $API_KEY \
--ref-name main

πŸ“¦ Supported CI/CD Platforms​

  • βœ… GitHub Actions
  • βœ… Jenkins
  • βœ… CircleCI
  • βœ… GitLab CI
  • βœ… Self-hosted CI tools

All platforms must support Node.js 20 and repo access.


⏭️ What’s Next?​