Automation
Analysis and output modes
Run scoped batting, bowling, dismissal, and partnership analysis with text, JSON, and JSONL output.
Analysis and output modes
cricinfo analysis runs derived cricket rankings over hydrated live data. Hydration happens inside the current command execution; no persistent analysis cache is written.
Analysis scopes
Use match:<id> for one match or season:<year> with --league for season traversal.
cricinfo analysis bowling --metric economy --scope match:1529474
cricinfo analysis batting --metric strike-rate --scope season:2025 --league 19138
cricinfo analysis partnerships --scope season:2025 --league 19138
cricinfo analysis dismissals --league 19138 --seasons 2024-2025
Optional bounds and traversal controls:
cricinfo analysis batting --metric runs --scope season:2025 --league 19138 --date-from 2025-03-01 --date-to 2025-05-31
cricinfo analysis bowling --metric wickets --scope season:2025 --league 19138 --type 2 --group 1 --match-limit 20
Text for humans
Text is the default and is meant for quick terminal reading.
cricinfo analysis dismissals --league 19138 --seasons 2025
cricinfo teams leaders rr --match 1529474 --league 11132
The CLI avoids leaking raw upstream URLs in text views for common analysis and team leader workflows.
JSON for single objects
Use JSON when another program needs the complete normalized payload.
cricinfo matches show 1529474 --format json
cricinfo players profile 1361257 --format json
cricinfo analysis bowling --metric economy --scope match:1529474 --format json
Add --all-fields when you want extended fields retained in structured output.
cricinfo matches show 1529474 --format json --all-fields
JSONL for lists
JSONL is best for list-oriented automation because each row can be streamed or piped independently.
cricinfo matches list --format jsonl
cricinfo leagues events 19138 --format jsonl
cricinfo search players "Kohli" --format jsonl
Agent-friendly pattern
A reliable agent workflow is:
- Use
searchor a list command with JSONL. - Select an ID from the result.
- Call the precise
show,profile,scorecard, oranalysiscommand with JSON. - Use text only for final user-facing summaries.
cricinfo search players "Virat Kohli" --format jsonl
cricinfo players profile 1361257 --format json