CLI Usage
Command-line interface for running GeoKit audits
CLI Usage
The GeoKit CLI provides a simple interface for auditing websites from the command line.
Basic Usage
npx @glincker/geokit audit <url>Example
npx @glincker/geokit audit https://example.comCLI Flags
--json
Output results in JSON format for programmatic use:
geokit audit https://example.com --json--badge
Generate shields.io badge snippets for README files:
geokit audit https://example.com --badgeOutput:
-green)--fail-under <score>
Exit with code 1 if the score is below the specified threshold:
geokit audit https://example.com --fail-under 80This is useful in CI/CD pipelines to fail builds when AI-readiness drops.
Exit Codes
0: Audit passed (or no threshold specified)1: Audit failed (score below--fail-underthreshold)2: Error during audit execution
Examples
CI/CD Integration
#!/bin/bash
geokit audit https://staging.example.com --fail-under 85
if [ $? -eq 0 ]; then
echo "✅ AI-readiness check passed"
else
echo "❌ AI-readiness score too low"
exit 1
fiGenerate Badge for README
geokit audit https://example.com --badge >> README.mdJSON Output for Processing
geokit audit https://example.com --json | jq '.score'Next Steps
- GitHub Action - Automate audits in CI/CD
- API Reference - Use programmatically in Node.js
- Scoring System - Understand how scores are calculated