CLI Overview
Install and use the xschema command-line interface
The xschema CLI converts JSON Schema files into native validators for your target language. It handles schema discovery, fetching, bundling, and code generation.
Installation
TypeScript
bun add -g xschemanpm install -g xschemapnpm add -g xschemayarn global add xschemaOr run directly without installing:
bunx xschema generatenpx xschema generatepnpm dlx xschema generateyarn dlx xschema generatePython
pip install xschemauv tool install xschemapipx install xschemaGo
go install github.com/xschemadev/xschema@latestVersion
Check the installed version:
xschema --versionCommands
| Command | Description |
|---|---|
generate | Parse config files, convert schemas, output native validators |
compliance | Run JSON Schema Test Suite compliance tests for adapters |