aeorank scan
Scan a website URL and generate an AEO score with dimension breakdown and all 8 output files.
aeorank scan <url> [options]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
<url> | The website URL to scan (required) |
Options
Section titled “Options”| Flag | Default | Description |
|---|---|---|
--format <type> | text | Output format: text (colored terminal) or json (machine-readable) |
--output <dir> | ./aeo-output | Directory to write generated files |
--config <path> | ./aeorank.config.js | Path to configuration file |
--max-pages <n> | 50 | Maximum pages to crawl |
--timeout <ms> | 30000 | Request timeout in milliseconds |
--concurrency <n> | 3 | Concurrent requests |
Examples
Section titled “Examples”Basic scan
Section titled “Basic scan”npx aeorank-cli scan https://example.comJSON output for CI
Section titled “JSON output for CI”npx aeorank-cli scan https://example.com --format jsonThe JSON output can be piped to other tools:
npx aeorank-cli scan https://example.com --format json | jq '.score'Custom output directory
Section titled “Custom output directory”npx aeorank-cli scan https://example.com --output ./my-aeo-filesScan fewer pages (faster)
Section titled “Scan fewer pages (faster)”npx aeorank-cli scan https://example.com --max-pages 10Use a config file
Section titled “Use a config file”npx aeorank-cli scan https://example.com --config ./aeorank.config.jsOutput
Section titled “Output”Text format (default)
Section titled “Text format (default)”The text format displays a colored score table with:
- Overall AEO score (0-100) and letter grade
- 12-dimension breakdown with score, weight, and status
- Pass/warn/fail indicators
- Actionable next-step recommendations ranked by priority
JSON format
Section titled “JSON format”The JSON format outputs a clean JSON object to stdout containing:
url— scanned URLscore— overall score (0-100)grade— letter grade (A+ through F)dimensions— array of dimension scoresfiles— array of generated file objectspagesScanned— number of pages crawledduration— scan duration in milliseconds
Error handling
Section titled “Error handling”Every error includes a specific next action:
- Invalid URL — “Check the URL format. Include https:// prefix.”
- Network error — “Verify the site is accessible. Check your internet connection.”
- Timeout — “Site took too long to respond. Try
--timeout 60000for a longer timeout.” - Permission denied — “The site’s robots.txt blocks crawling. Check the site’s access rules.”