Help us shape the future of Go! Take the 2026 Go Developer Survey

wp-record

command
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Command wp-record records a WordPress site's public REST responses into a directory for local migration rehearsals (spec §7 "recorded fixture server"). The committed wpmigrate fixture is fictional: replace a recording's content with invented data before committing any of it. It only performs GET requests. Credentials, when given through WP_RECORD_USER / WP_RECORD_PASSWORD, are sent but never written: only response bodies, status codes and the X-WP-Total / X-WP-TotalPages / Content-Type headers are stored.

go run ./tools/wp-record -site https://example.com -out wp-recording

Output: one file per response plus routes.json mapping the canonical request key (path + sorted query without per_page, _embed, _fields and page=1) to {file, status, headers}.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL