TheDocumentation Index
Fetch the complete documentation index at: https://docs.squirrelscan.com/llms.txt
Use this file to discover all available pages before exploring further.
audit command crawls a website and runs SEO rules to generate a report.
Usage
Arguments
| Argument | Description |
|---|---|
url | The URL to audit (required) |
Options
| Option | Alias | Description | Default |
|---|---|---|---|
--max-pages | -m | Maximum pages to crawl | varies by coverage mode |
--coverage | -C | Coverage mode: quick, surface, full | surface |
--format | -f | Output format: console, text, json, html, markdown, xml, llm | console |
--output | -o | Output file path | auto |
--refresh | -r | Ignore cache, fetch all pages fresh | false |
--resume | Resume interrupted crawl for this domain | false | |
--verbose | -v | Verbose output | false |
--debug | Enable debug logging | false | |
--trace | Enable performance tracing | false | |
--project-name | -n | Project name (overrides config and prompts) | auto |
--publish | -p | Publish report to reports.squirrelscan.com | false |
--visibility | Visibility: public, unlisted, private | public |
Coverage Modes
| Mode | Default Pages | Description |
|---|---|---|
quick | 25 | Fast scan - seed URL + sitemaps only, no link discovery |
surface | 100 | Smart sampling - one page per URL pattern (default) |
full | 500 | Comprehensive - crawl everything up to limit |
For SARIF format (IDE integration), use the See the report command docs for details.
report command after running an audit:Examples
Basic Audit
Quick Health Check
Full Comprehensive Audit
Crawl More Pages
Export to JSON
Generate HTML Report
Fresh Crawl (Ignore Cache)
Audit and Publish
Publishing requires authentication. Run
squirrel auth login first.Verbose Output
Output Formats
Console (default)
Human-readable output with colored issue severity:JSON
Machine-readable JSON for CI/CD pipelines and AI processing:HTML
Visual report you can open in a browser:Crawl Behavior
The audit command manages crawl sessions intelligently:| Scenario | Behavior |
|---|---|
| First run | Creates new crawl |
| Re-run (completed) | New crawl, uses cache for 304s |
| Re-run (interrupted) | Resumes from where it left off |
| Config changed | New crawl with fresh scope |
Changing scope-affecting config (
include, exclude, allow_query_params, drop_query_prefixes) triggers a fresh crawl.Caching
SquirrelScan caches page content locally. On subsequent audits:- 304 Not Modified: Uses cached content (fast)
- 200 OK: Fetches fresh content (slower)
--refresh to bypass the cache entirely.
Exit Codes
| Code | Meaning |
|---|---|
0 | Success |
1 | Error (invalid URL, crawl failed, etc.) |
Configuration
The audit command respects settings fromsquirrel.toml:
Using with AI
Pipe JSON output to your LLM:Related
- Crawling - How the crawler works
- Configuration - Config file options
- squirrel report - View stored audit reports