Skip to main content
Use codeant findings to retrieve the findings available in the CodeAnt AI app as structured CLI output. The commands use the same authenticated organization, authorization rules, repository access, cloud scope, and pentest entitlements as the app.
Findings commands require a CLI version that includes codeant findings. Verify with codeant findings --help after installing or upgrading codeant-cli.

Quick start

1

Authenticate

If you authenticated before application API support was added, run codeant logout and codeant login once to create a key with the required identity metadata.
2

List your organization connections

When more than one connection is available, pass its exact organizationName and service using --org and --service.
3

Query findings

The command returns JSON by default, making it suitable for terminals, scripts, CI pipelines, and agents.

Finding coverage

The existing codeant scans repos, codeant scans results, and codeant hotlist list/get commands remain supported. The unified findings namespace provides a discoverable entry point without requiring existing scripts to migrate.

Select an organization connection

Application-backed findings commands accept these options: The organization, service, and provider URL must match an authenticated connection. The CLI will not send its bearer token to an arbitrary host.

Repository discovery

List the repositories available for repo-level findings:
Use the returned full_name, such as CodeAnt-AI/example, with findings repo.

Repository findings

Fetch all supported findings from the latest available scan:
Select a branch, scan, categories, and severities:

Repository finding types

Repository options

Export a scan as SARIF:

Organization Hotlist

findings list uses the same prioritized organization snapshot, filters, stable finding IDs, and cursor pagination as the Hotlist in the app.

Hotlist filters

Fetch one complete finding using the stable 32-character ID returned by findings list or shown in the app:

Organization anti-patterns

Query anti-patterns across every repository in the selected organization:
Limit the request to selected repositories:
When --repos is omitted, the CLI discovers the organization’s repositories before calling the aggregate anti-pattern endpoint.

Cloud security findings

Cloud Security findings are organization and cloud-resource scoped, not repository or branch scoped. The CLI supports AWS, Azure, and GCP across three finding kinds:

Discover cloud scans

If one provider is unavailable, an all history request returns the other providers and includes an error for the unavailable provider.

List CSPM findings

AWS can optionally be narrowed to an account:
Azure CSPM requires the tenant ID, and GCP CSPM requires the project ID:
CSPM list filters include --cloud-service, --severity, --status, --framework, and --min-days-unused. AWS also supports --exploit-attempted-only; Azure also supports --subscription-id.

List VM and container findings

VM and container scans are identified by provider, kind, and scan ID:

Get cloud finding detail

Use a finding uid from the list response:

Pentest findings

Start by listing pentest engagements to discover their report IDs:
Fetch all available open issues or the complete customer report:
Use the test-environment variant when an engagement includes a test run:
--variant prod is the default. Pentest access and critical/high finding redaction are enforced by the backend exactly as they are in the app. CLI access does not unlock restricted report content.

Use findings with agents

The native CodeAnt MCP server exposes repository, Hotlist, anti-pattern, cloud, and pentest findings as read-only tools. See MCP Server for setup and the complete tool list. Typical agent flow:
  1. Discover the organization and scope with codeant_scans_orgs, codeant_scans_repos, codeant_cloud_scan_history, or codeant_pentest_history.
  2. List and filter findings.
  3. Retrieve one detailed Hotlist or cloud finding, or a pentest report.

Troubleshooting

Scan Center

Explore the existing scans commands and scan metadata.

Cloud Security

Learn about CSPM, VM scanning, and container scanning.

Pentesting

Learn how pentest engagements and reports work in the app.