Skip to main content
The analyze command runs audit rules on a previously crawled website without re-crawling.

Usage

squirrel analyze [options]

Options

OptionDescriptionDefault
--idCrawl ID to analyzeLatest crawl

Examples

Analyze Latest Crawl

squirrel analyze

Analyze Specific Crawl

squirrel analyze --id a7b3c2d1

Output

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 analyze

Re-analyze After Code Changes

# While developing custom rules
squirrel analyze

Separate Crawl and Analysis

# Crawl during off-hours
squirrel crawl https://example.com

# Analyze later
squirrel analyze

Configuration

The analyze command respects rule settings from squirrel.toml:
[rules]
enable = ["*"]
disable = ["ai/*", "content/quality"]

[rule_options]
# Rule-specific options
See Configuration for all options.

Exit Codes

CodeMeaning
0Success
1Error (no crawl found, analysis failed, etc.)
  • crawl - Crawl website without analysis
  • audit - Crawl + analyze in one command
  • report - View analysis results
  • Configuration - Config file options