Guide

Quick start

One command per job: point the exporter at a WordPress site, choose a format, and read the files it writes. These are the invocations worth knowing before anything else — every flag they use is spelled out in the command line reference.

REST API Export (wpexporter)

 1# Export all content from a WordPress site
 2wpexportjson export --url https://example.com --output ./export
 3
 4# Export with brute force discovery
 5wpexportjson export --url https://example.com --brute-force --output ./export
 6
 7# Export to specific format
 8wpexportjson export --url https://example.com --format json --output ./export.json
 9
10# Export and create ZIP archive
11wpexportjson export --url https://example.com --zip
12
13# Export to ZIP only (remove files after creating ZIP)
14wpexportjson export --url https://example.com --zip --no-files
15
16# Export to Markdown with ZIP archive
17wpexportjson export --url https://example.com -f markdown --zip
18
19# Export to Shopify-compatible CSV format
20wpexportjson export --url https://example.com -f shopify
21
22# Export to Shopify CSV with ZIP archive
23wpexportjson export --url https://example.com -f shopify --zip
24
25# Export to Magento-compatible CSV format
26wpexportjson export --url https://example.com -f magento
27
28# Export to Magento CSV with ZIP archive
29wpexportjson export --url https://example.com -f magento --zip
30
31# Export to WordPress WXR format (for WordPress import)
32wpexportjson export --url https://example.com -f wordpress
33
34# Export to Drupal-compatible JSON format
35wpexportjson export --url https://example.com -f drupal
36
37# Export to Wix-compatible JSON format
38wpexportjson export --url https://example.com -f wix
39
40# Export to Squarespace-compatible XML format
41wpexportjson export --url https://example.com -f squarespace
42
43# Export to Webflow-compatible CSV format
44wpexportjson export --url https://example.com -f webflow
45
46# Export to Weebly-compatible format (XML + JSON)
47wpexportjson export --url https://example.com -f weebly
48
49# Export to PrestaShop-compatible CSV format
50wpexportjson export --url https://example.com -f prestashop
51
52# Export to Ghost-compatible JSON format
53wpexportjson export --url https://example.com -f ghost
54
55# Export to Strapi-compatible JSON format
56wpexportjson export --url https://example.com -f strapi
57
58# Export to Contentful-compatible JSON format
59wpexportjson export --url https://example.com -f contentful

XML-RPC Export (wpxmlrpc)

1# Export with authentication
2wpxmlrpc export --url https://example.com --username admin --password mypassword --output ./xmlrpc-export
3
4# Export to markdown format
5wpxmlrpc export --url https://example.com --username admin --password mypassword --format markdown --output ./markdown-export