Command Line Interface

Access DeepSource data directly from your terminal

DeepSource CLI lets you view issues, metrics, vulnerabilities, and code reviews from your terminal.

What you can do

  • View the status and results of code reviews across your repositories
  • Filter and inspect code issues by severity, category, analyzer, or file path
  • Check code coverage, code health scores, and other metrics
  • Send test coverage artifacts to DeepSource from CI pipelines or local environments
  • Review dependency vulnerabilities detected in your codebase
  • Get a report card of code health across all analyzers

All commands support JSON output for scripting and automation.

Use cases

Terminal-first development Check issues, review metrics, and see code review results without leaving the terminal.

AI coding agents AI agents like Claude Code and Cursor can use CLI to fetch issues and metrics, then resolve them or improve coverage. See the CLI with AI agents guide for setup instructions.

Scripting and automation Pipe JSON output into jq or feed it to other tools. Every command supports --output json.

CI/CD pipelines Use OIDC-based authentication in GitHub Actions instead of storing long-lived secrets.

Enterprise Server Connect to on-prem deployments with custom hostnames.

Getting started

See the installation guide to install and authenticate, or jump to the command reference for the full list of commands and flags.

On this page