Skip to main content

CLI Reference

One Command. Many Options.

Complete reference for the PromptReports CLI.

Commands

npx @promptreports/cli

Basic scan — reads .env.local, detects services, estimates costs.

npx @promptreports/cli --all

Full scan — includes all provider categories and extended analysis.

--all
npx @promptreports/cli --push

Push scan results to the Ops Intelligence Dashboard.

--push
npx @promptreports/cli --all --push

Full scan + push to dashboard. The recommended daily workflow.

--all--push
npx @promptreports/cli --sessions

Analyze Claude Code session costs, lengths, and efficiency.

--sessions
npx @promptreports/cli --json

Output results as JSON for CI/CD integration or scripting.

--json

Environment Variables

PROMPTREPORTS_API_KEYRequired

Your API key from the dashboard settings page.

PROMPTREPORTS_URLOptional

Custom dashboard URL. Defaults to https://promptreports.ai.

CI/CD Integration

Add to your package.json scripts for easy access:

package.json
"scripts": {
  "ops:scan": "npx @promptreports/cli --all --push"
}

Ready to Scan?

Create Free Account

No credit card required.