Skip to main content

meta export

Usage

seo-ops meta export [--path=<path>] [--format=csv|json] [--output=<file>] [--post-type=post,page] [--status=publish]

Export SEO metadata for all posts to CSV or JSON. Automatically detects the active SEO plugin and maps meta keys.

Examples

# Export to CSV
seo-ops meta export --path=/var/www/html --format=csv --output=seo-meta.csv

# Export to JSON
seo-ops meta export --path=/var/www/html --format=json

# Filter by post type
seo-ops meta export --path=/var/www/html --post-type=page --format=json

# Export drafts too
seo-ops meta export --path=/var/www/html --status=any --format=csv --output=all-posts.csv

CSV Column Headers

post_id,post_title,url,seo_plugin,seo_title,seo_description,focus_keyword,canonical,noindex,og_title,og_description

Exit Codes

CodeMeaning
0Success
1Invalid path or WordPress not found
4WordPress path not configured