CLI Reference
One Command. Many Options.
Complete reference for the PromptReports CLI.
Commands
npx @promptreports/cliBasic scan — reads .env.local, detects services, estimates costs.
npx @promptreports/cli --allFull scan — includes all provider categories and extended analysis.
--all
npx @promptreports/cli --pushPush scan results to the Ops Intelligence Dashboard.
--push
npx @promptreports/cli --all --pushFull scan + push to dashboard. The recommended daily workflow.
--all--push
npx @promptreports/cli --sessionsAnalyze Claude Code session costs, lengths, and efficiency.
--sessions
npx @promptreports/cli --jsonOutput results as JSON for CI/CD integration or scripting.
--json
Environment Variables
PROMPTREPORTS_API_KEYRequiredYour API key from the dashboard settings page.
PROMPTREPORTS_URLOptionalCustom 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"
}