vexilc

vexilc is the Vexil schema compiler. It validates schemas, generates code for multiple target languages, and provides tools for schema evolution and binary file inspection.

Usage

vexilc <subcommand> [args]

Subcommands

CommandDescription
checkValidate a schema and print its hash
codegenGenerate code for a single schema file
buildGenerate code for a multi-file project
watchWatch files and rebuild on changes
compatCompare schemas for breaking changes
initCreate a new schema file
hashPrint the BLAKE3 schema hash
packEncode a .vx text file to .vxb binary
unpackDecode a .vxb binary file to .vx text
formatFormat a .vx text file
infoInspect .vxb/.vxc file headers
compileCompile a schema to .vxc binary format

Global options

OptionDescription
-V, --versionPrint version
-h, --helpPrint help

Targets

The --target option (used by codegen, build, and watch) accepts:

  • rust (default)
  • typescript
  • go