Basic usage
The CLI follows a simple command structure:<command> is one of the available commands listed below.
Available commands
The tool provides two sequential commands:extract-tweets
Extract tweets from your Twitter archive JSON file
analyze-tweets
Analyze extracted tweets using Gemini AI
Typical workflow
The commands are designed to be run in sequence:- Extract: First, run
extract-tweetsto convert your Twitter archive from JSON to CSV format - Analyze: Then, run
analyze-tweetsto process tweets with AI and generate deletion recommendations
Command help
To see all available commands, run the CLI without any arguments:Exit codes
The CLI uses standard exit codes to indicate success or failure:Command completed successfully
Command failed due to an error (see error message for details)
Error handling
When a command fails, the CLI:- Prints a descriptive error message to stderr
- Exits with code 1
- Logs detailed error information (check logs for debugging)
Output format
All commands provide clear console output:- Progress messages: Displayed during execution
- Success messages: Show counts and confirmation
- Error messages: Include specific details about failures
Example output
Next steps
Extract tweets
Learn about the extract-tweets command
Analyze tweets
Learn about the analyze-tweets command