Guide

Installation

wpexporter ships as a single static binary for Linux, macOS, Windows and FreeBSD, plus a Docker image. Every package installs the umbrella wpexporter command alongside the three standalone tools — wpexportjson, wpxmlrpc and wpmcp — which behave identically to their subcommand form.

Homebrew (macOS / Linux)

1brew install tradik/tap/wpexporter

This installs the wpexporter umbrella command plus the wpexportjson, wpxmlrpc and wpmcp binaries, and the man pages.

Snap (Linux)

1sudo snap install wpexporter

Provides the wpexporter command, plus wpexporter.wpexportjson, wpexporter.wpxmlrpc and wpexporter.wpmcp.

From Source

1git clone https://github.com/tradik/wpexporter.git
2cd wpexporter
3make build
4
5# Optional: Install man pages (requires sudo)
6sudo make install-man
7man wpexportjson

Using Go Install

1go install github.com/tradik/wpexporter/cmd/wpexporter@latest
2go install github.com/tradik/wpexporter/cmd/wpexportjson@latest
3go install github.com/tradik/wpexporter/cmd/wpxmlrpc@latest
4go install github.com/tradik/wpexporter/cmd/wpmcp@latest

Using Docker

Docker images are available from GitHub Container Registry:

 1# Pull the latest image
 2docker pull ghcr.io/tradik/wpexporter:latest
 3
 4# Run wpexporter
 5docker run --rm -v $(pwd)/export:/export ghcr.io/tradik/wpexporter:latest \
 6  wpexportjson export --url https://example.com --output /export
 7
 8# Run wpxmlrpc
 9docker run --rm -v $(pwd)/export:/export ghcr.io/tradik/wpexporter:latest \
10  wpxmlrpc export --url https://example.com --username admin --password mypassword --output /export
11
12# Run wpmcp (MCP server over stdio)
13docker run --rm -i ghcr.io/tradik/wpexporter:latest wpmcp

All four binaries — wpexporter, wpexportjson, wpxmlrpc and wpmcp — ship in the image.