Export repository data
Validate first so the snapshot is not built from known-invalid records:
mergeway-cli validate
mergeway-cli --format json export --output repository.jsonTo limit the output, list entity names after export:
mergeway-cli --format json export User Post --output authors-and-posts.jsonThe document maps each entity to an ID-sorted record array. Entity ordering in JSON objects is not a semantic contract; consumers should address keys by name. --output replaces an existing destination, so use a temporary path when reviewing:
tmp_file=$(mktemp)
mergeway-cli --format yaml export User --output "$tmp_file"
less "$tmp_file"See export for failure behavior and records/data sources for the loaded model.