WP-CLI Commands
AccessGuard includes WP-CLI commands for running scans and managing results from the command line.
Available Commands
# Run a full site scan
wp accessguard scan
# Run a scan on a specific URL
wp accessguard scan --url=https://example.com/about
# View the latest scan results
wp accessguard results
# Export results as JSON
wp accessguard results --format=json
# Generate a PDF report
wp accessguard report --output=/path/to/report.pdf
# Check license status
wp accessguard license status
# Activate a license key
wp accessguard license activate YOUR-LICENSE-KEY
CI/CD Integration
WP-CLI commands can be integrated into your CI/CD pipeline to run accessibility checks on staging environments before deploying to production. The scan command returns a non-zero exit code if critical issues are found.
