This page documents all available commands in the tif1 CLI. Each command includes its signature, parameters, options, and usage examples.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TracingInsights/tif1/llms.txt
Use this file to discover all available pages before exploring further.
events
List all Formula 1 events for a specific year.Signature
Arguments
Year to query (2018-current)
Examples
Output
Displays a formatted table with:- Event number (1-based index)
- Event name (e.g., “Bahrain Grand Prix”, “Monaco Grand Prix”)
- Total event count
Example Output
sessions
List all sessions for a specific event.Signature
Arguments
Year to query (2018-current)
Event name (e.g., “Monaco”, “Bahrain Grand Prix”)
Examples
Output
Displays a formatted table with:- Session number (1-based index)
- Session name (Practice 1, Practice 2, Practice 3, Qualifying, Sprint, Sprint Qualifying, Race)
Example Output
drivers
List all drivers participating in a specific session.Signature
Arguments
Year to query (2018-current)
Event name (e.g., “Monaco”, “Bahrain Grand Prix”)
Session name (e.g., “Race”, “Qualifying”, “Practice 1”)
Examples
Output
Displays a formatted table with:- Driver identifier (3-letter abbreviation, e.g., VER, HAM, LEC)
- Team name (e.g., Red Bull Racing, Mercedes, Ferrari)
- Total driver count
Example Output
This command loads session data, which may take 2-5 seconds on first run (or <1 second if cached).
fastest
Show fastest lap times for a session, either for all drivers or a specific driver.Signature
Arguments
Year to query (2018-current)
Event name (e.g., “Monaco”, “Bahrain Grand Prix”)
Session name (e.g., “Race”, “Qualifying”, “Practice 1”)
Options
Filter to a specific driver (3-letter code, e.g., VER, HAM, LEC)
Examples
All Drivers
Specific Driver
Output (All Drivers)
Displays a formatted table sorted by lap time:- Position (fastest to slowest)
- Driver identifier
- Team name
- Lap time in seconds (formatted to 3 decimal places)
Example Output
Output (Specific Driver)
Displays a single line with:- Driver identifier
- Lap time in seconds (formatted to 3 decimal places)
Example Output
If a driver has no valid laps (e.g., DNS, mechanical failure), the command will display:
No valid laps for <DRIVER>cache-info
Display information about the tif1 cache.Signature
Arguments
None.Examples
Output
Displays:- Cache location: Absolute path to the cache directory
- Cache files: Number of files in the cache
- Total size: Cache size in megabytes (MB)
Example Output
cache-clear
Clear all cached data to free disk space.Signature
Arguments
None.Options
Skip confirmation prompt and clear cache immediately
Examples
Interactive Mode
Skip Confirmation
Output
Confirmed:version
Display the installed tif1 version.Signature
Arguments
None.Examples
Output
Displays the current version number:debug
Load a session with debug-level logging enabled for troubleshooting.Signature
Arguments
Year to query (2018-current)
Event name (e.g., “Monaco”, “Bahrain Grand Prix”)
Session name (e.g., “Race”, “Qualifying”, “Practice 1”)
Examples
Output
Enables DEBUG-level logging and displays:- Progress indicator for session loading
- Detailed HTTP request logs
- Cache hit/miss information
- Data parsing steps
- Session statistics (driver count, lap count)
Example Output
Use this command when experiencing data loading issues or to understand the data pipeline behavior.
Global Options
All commands support standard Typer global options:—help
Display help information for any command.—version
Display version (alternative totif1 version).
Exit Codes
The CLI uses standard exit codes:- 0: Success
- 1: General error (invalid arguments, data not found, network error)
- 2: Invalid usage (wrong number of arguments, invalid options)
Common Patterns
Analyze a Full Race Weekend
Compare Driver Performance
Cache Management Workflow
Next Steps
CLI Overview
Learn about CLI features and workflows
Python API
Use tif1 programmatically for advanced analysis
Caching
Configure cache behavior and location
Error Handling
Understand error messages and troubleshooting