§01
Installation
# Install globally
npm install -g siteassets
# Or use npx
npx siteassets check https://example.com
Automate OG tag checks and image generation from your terminal. Perfect for CI/CD pipelines and batch processing.
Set your API key as an environment variable or pass it with --api-key:
Check OG tags for a URL
Options
-f, --format <format> Output format (json, table) default: table --timeout <ms> Request timeout in milliseconds default: 10000 Generate OG image for a URL
Options
-t, --template <template> OG template name default: minimal -o, --output <path> Output file path default: og-image.png --format <format> Image format (png, svg, webp) default: png --api-key <key> SiteAssets API key (or set SITEASSETS_API_KEY env var) Check OG tags for multiple URLs
Options
-o, --output <path> Output file path default: results.json --timeout <ms> Request timeout in milliseconds default: 10000 Generate OG images for multiple URLs
Options
-t, --template <template> OG template name default: minimal -o, --output <dir> Output directory default: ./og-images --format <format> Image format (png, svg, webp) default: png --api-key <key> SiteAssets API key (or set SITEASSETS_API_KEY env var) Check a single URL
Generate OG image with custom template
Bulk check multiple URLs
Bulk generate and upload