analyze
Run audit rules on stored crawl data
The analyze command runs audit rules on a previously crawled website without re-crawling.
Usage
squirrel analyze [options]Options
| Option | Description | Default |
|---|---|---|
--id | Crawl ID to analyze | Latest crawl |
Examples
Analyze Latest Crawl
squirrel analyzeAnalyze Specific Crawl
squirrel analyze --id a7b3c2d1Output
Analyzing latest crawl...
✓ Ran 87 rules in 2.3s
Analysis complete: a7b3c2d1
Site: https://example.com
Passed: 52 | Warnings: 18 | Failed: 17
Run 'squirrel report' to view results.
Use Cases
Iterate on Rule Configuration
# Crawl once
squirrel crawl https://example.com
# Test different rule configs
squirrel analyze
# Edit squirrel.toml
squirrel analyzeRe-analyze After Code Changes
# While developing custom rules
squirrel analyzeSeparate Crawl and Analysis
# Crawl during off-hours
squirrel crawl https://example.com
# Analyze later
squirrel analyzeConfiguration
The analyze command respects rule settings from squirrel.toml:
[rules]
enable = ["*"]
disable = ["ai/*", "content/quality"]
[rule_options]
# Rule-specific optionsSee Configuration for all options.
Exit Codes
| Code | Meaning |
|---|---|
0 | Success |
1 | Error (no crawl found, analysis failed, etc.) |
Related
- crawl - Crawl website without analysis
- audit - Crawl + analyze in one command
- report - View analysis results
- Configuration - Config file options