axe-cli Plugin
axe-cli runs accessibility tests from the command line.
Commands
axe-cli <resource> <action>— Execute axe-cli commandsaxe-cli self version— Print axe-cli versionaxe-cli _ _— Passthrough to axe-cli CLI
Usage Examples
- "check a webpage for WCAG violations"
- "test all pages in sitemap for a11y issues"
- "output accessibility results as JSON"
- "verify ARIA landmark structure"
Installation
npm install -g axe-cli
Key Features
- WCAG 2.x violation detection
- ARIA attribute validation
- Color contrast checking
- Keyboard accessibility testing
- HTML file and URL scanning
- JSON output for CI integration
- Sitemap crawling for multi-page audits