added local export support and refined program logic

This commit is contained in:
2026-02-08 05:30:55 -05:00
parent 8ee2b39809
commit 6565a8546f
11 changed files with 488 additions and 32 deletions

View File

@@ -96,6 +96,16 @@ Skip git sync:
wp-materialize apply --no-sync
```
Local export (writes per-post directories with HTML, metadata, and WP command):
```bash
wp-materialize local /path/to/output
```
Notes:
1. The local export assumes every post is new and generates create commands.
2. Categories must already exist in WordPress for exact commands.
## Manifests
Each managed directory must contain a `.wp-materialize.json` manifest. See `configurations.md` for the manifest guide.