Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/helsingborg-stad/municipio-clone/archive/refs/heads/main.zipOn Packagist as helsingborg-stad/municipio-clone:
composer require helsingborg-stad/municipio-cloneNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WordPress plugin that adds a sanitized export REST API and a wp municipio clone WP-CLI command for pulling masked database snapshots from another WordPress site.
Features
wp municipio clone --url=<source> --target=<target> --api-key=<key> [--force]- REST export endpoint at
/wp-json/municipio-clone/v1/export - Per-user API key authentication with the
municipio_clone_exportcapability - Encrypted artifact cache with configurable TTL
- Built-in washer rules for comments, WooCommerce customer data, and common form-entry tables
- Serialization-aware source URL placeholder replacement
Configuration
MUNICIPIO_CLONE_CACHE_TTL- Cache lifetime for generated export artifacts in seconds. Defaults to3600(1 hour).MUNICIPIO_CLONE_FORCE_WINDOW- Minimum number of seconds between forced regenerations for the same source site. Defaults to600(10 minutes).MUNICIPIO_CLONE_STORAGE_PATH- Absolute directory path where encrypted export artifacts are stored. Defaults to a directory outside the web root whenABSPATHis available.MUNICIPIO_CLONE_ENCRYPTION_KEY- Encryption key used to protect cached export artifacts at rest. If not set, the plugin falls back toAUTH_KEY; one of these must be available.MUNICIPIO_CLONE_PLACEHOLDER_URL- Neutral placeholder URL written into exported data before import. Defaults tohttps://municipio-clone-placeholder.invalid.
Clone usage
wp municipio clone \
--url=https://source.example.se/site-a \
--target=https://local.example.test/site-b \
--api-key=your-personal-export-key \
--force
Testing
composer dump-autoload
phpunit --configuration phpunit.xmlReleases
Newest 25 of 34 recorded releases.
Tag
Published
v1.6.6
latest
Oct 21, 2026 16d ago
Oct 21, 2026 16d ago
Oct 20, 2026 17d ago
Oct 19, 2026 18d ago
Oct 19, 2026 18d ago
Oct 19, 2026 18d ago
Oct 19, 2026 18d ago
Oct 19, 2026 18d ago
Oct 19, 2026 18d ago
Oct 19, 2026 18d ago
Oct 19, 2026 18d ago
Oct 5, 2026 1mo ago
Sep 30, 2026 1mo ago
Sep 28, 2026 1mo ago
Sep 24, 2026 1mo ago
Sep 22, 2026 1mo ago
Sep 22, 2026 1mo ago
Sep 22, 2026 1mo ago
Sep 22, 2026 1mo ago
Sep 22, 2026 1mo ago
Sep 22, 2026 1mo ago
Sep 22, 2026 1mo ago
Sep 22, 2026 1mo ago
Sep 22, 2026 1mo ago
Sep 22, 2026 1mo ago
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.