Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Codecov CLI

$ codecovcli Official Low Risk
Codecov · Workspace & SaaS · Apache-2.0 · macos / linux / windows

Codecov CLI (codecovcli) replaces legacy uploaders with an official Python CLI supporting create-commit, create-report, do-upload, and pr-base-picking. Built for CI pipelines and local coverage verification with --dry-run and --fail-on-error flags.

FCRS-1.0 Score
76 /100
Good
Medium Confidence
Zero-Friction Install
brew install codecov-cli
CLI vs MCP Decision CLI Only

codecovcli discovers local coverage.xml/lcov.info files via plugins (gcov, pycoverage, xcode) and uploads them from build runners; MCP servers cannot access local build artifacts directly.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Runs non-interactively with Click --help and --dry-run, though it lacks a --json output mode for API responses.

  • Non-interactive execution via CODECOV_TOKEN and CI env detection
  • No --json structured output flag across subcommands
Trust & Safety 20 / 25

Includes --dry-run and --fail-on-error (-Z), and does not modify local source files or store persistent user credentials.

  • Supports do-upload --dry-run and -Z / --fail-on-error
Setup & Portability 12 / 15

Available via Homebrew, PyPI (pip install codecov-cli), and standalone PyInstaller binaries, though PyPI requires Python 3.10+.

  • Distributed via brew install codecov-cli, PyPI, and cli.codecov.io
Utility & Efficiency 11 / 15

Handles coverage discovery, commit registration, Test Analytics, and PR base-picking in one tool.

  • Supports create-commit, do-upload, and pr-base-picking
Maintenance & Lineage 8 / 10

Official Codecov repository (codecov/codecov-cli) licensed under Apache-2.0.

  • Maintained directly by Codecov
Docs & Verifiability 6 / 10

Documented on docs.codecov.com and README, though CLI reference pages are thinner on JSON/schema contracts.

  • Official docs and Click CLI --help output

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Reads CODECOV_TOKEN from environment variables or --token CLI flag, and honors repository settings in codecov.yml without storing persistent local login state.

Side Effects
Read-Only Remote Write
Cost & Quotas

Apache-2.0 open-source CLI; Codecov is free for public repositories and paid for private org seats.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Codecov CLI (codecovcli) Agent Rules
- Always test discovery first with `codecovcli do-upload --dry-run` before live uploads.
- Supply `CODECOV_TOKEN` via environment variable instead of passing `--token` in shell history.
- Add `--fail-on-error` in CI steps so silent upload errors do not pass checks.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect CLI help and upload options
codecovcli do-upload --help

Displays supported coverage file discovery, plugin, and dry-run options without contacting Codecov.

Controlled Writes & Previews

Dry-run local coverage discovery and upload
codecovcli do-upload --dry-run --fail-on-error

Runs local coverage file detection and report assembly without uploading anything to Codecov.

Strengths for Agents

  • + do-upload --dry-run validates local coverage file detection before sending data to Codecov.
  • + Automatic CI provider detection (github, gitlab, bitbucket) simplifies pipeline invocation.

Caveats & Pitfalls

  • ! Does not expose a --json output flag, requiring log text parsing if agents inspect upload summaries.
  • ! Focused on coverage/test upload workflows rather than querying historical Codecov dashboard metrics.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI