Skip to main content

audit links

Usage

seo-ops audit links [--path=<path>] [--format=table|json|csv] [--output=<file>] [--broken-only] [--external-only]

Analyze internal and external links across all published content.

Examples

# Default table output
seo-ops audit links --path=/var/www/html

# JSON output
seo-ops audit links --path=/var/www/html --format=json

# Show only broken links
seo-ops audit links --path=/var/www/html --broken-only

# Show only external links
seo-ops audit links --path=/var/www/html --external-only

Features

  • Counts internal vs external links per post
  • Checks internal links for broken status (HTTP HEAD)
  • Detects orphaned pages (no internal links pointing to them)
  • Reports link health score
  • Supports --broken-only and --external-only filters