Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions CLI_USAGE_GUIDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# ๐ŸŽฏ DMV Scam Analysis - CLI Usage Guide

## Quick Start Commands

### ๐Ÿ” **Analyze a Single Message**
```bash
python3 dmv_cli_enhanced.py analyze "Your DMV license expires soon. Click here to renew."
```

### ๐Ÿ“„ **Batch Analyze Multiple Messages**
```bash
# From a text file (one message per line)
python3 dmv_cli_enhanced.py batch-analyze messages.txt

# From a JSON file
python3 dmv_cli_enhanced.py batch-analyze messages.json -o results.json
```

### ๐ŸŽฎ **Interactive Mode**
```bash
python3 dmv_cli_enhanced.py interactive
```
Then type messages to analyze in real-time!

### ๐Ÿฅ **System Health Checks**
```bash
python3 dmv_cli_enhanced.py test-system
```

### ๐Ÿ’ป **System Information**
```bash
python3 dmv_cli_enhanced.py system-info
```

### ๐Ÿค– **Model Status**
```bash
python3 dmv_cli_enhanced.py model-status
```

## Example Output

```
๐Ÿ” Analyzing message from cli...
Message: "Your DMV license expires soon. Click here to renew."

โœ… THREAT ASSESSMENT: LOW RISK
๐ŸŽฏ Threat Score: 0.000
๐Ÿ“Š Confidence: 0.0%
โšก Analysis Time: 0.105s

๐Ÿ” Threat Indicators Detected:
โ€ข Urgency language detected
โ€ข Call-to-action language detected
โ€ข Government/official impersonation

๐Ÿ’ก Recommendations:
โ€ข โœ… Message appears legitimate
โ€ข โ„น๏ธ Always verify important information independently
```

## Tips & Tricks

- Use `--save` flag with analyze to save results
- Interactive mode supports commands: 'help', 'status', 'clear', 'quit'
- Batch analysis automatically detects JSON vs text file format
- All results are saved with timestamps for tracking