Mergeway CLI
Mergeway Overview
Mergeway is a lightweight CLI that keeps metadata honest by treating schemas as code. Instead of juggling spreadsheets or custom scripts, you describe entities in YAML/JSON, run a quick validation, and catch broken references before they reach production.
What the CLI Does
- Stores entity definitions and relationships in version-controlled files.
- Validates schemas and records so required fields and references stay consistent.
- Generates simple reports you can attach to pull requests or issues.
Key Features
- Workspace scaffolding:
mw initwrites a startermergeway.yamlinto your working directory so you can begin defining entities immediately. - Dual schema sources: Author entity fields inline in YAML or reference existing JSON Schema documents (
json_schema) so teams can reuse specs. - Object lifecycle commands:
list,get,create,update, anddeleteoperate on local YAML/JSON files, respecting identifier fields defined in schemas and inline data. - Deterministic formatting:
mw fmtemits canonical structure and rewrites files in place (use--stdoutto preview changes) to keep diffs clean. - Layered validation: Format, schema, and reference phases catch structural, typing, and cross-entity errors before they land in main.
- Schema introspection:
mw entity showandmw config exportsurface normalized schemas or derived JSON Schema for documentation and automation.
Why Teams Use Mergeway
- Fast feedback: One command surfaces missing fields, enum mismatches, or invalid references.
- Git-native: Changes live in branches and pull requests, making reviews trivial.
- Lightweight: No server component—just a binary that runs locally or in CI.
Where to Go Next
- Install Mergeway (or build from source).
- Follow the Getting Started guide.
- Review the Concepts and Schema Format when you define entities.
- Browse through the CLI Reference for command syntax.
Updates land in the Changelog. File GitHub issues for questions, bugs, or requests.