跳到主要内容

JSON Schema Commands: schemas

bohr schemas reads JSON Schemas and error codes embedded in the CLI, or serves them over a local HTTP endpoint. Its alias is schema.

Commands

CommandUsageDescription
errorsbohr schemas errors [flags]List all error codes with descriptions.
getbohr schemas get <schema-name> [flags]Print a schema by name (e.g., envelope.v1, common/money.v1).
listbohr schemas list [flags]List all available schemas.
servebohr schemas serve [flags]Start a local HTTP server serving schemas.

For subcommands inside a command group, run bohr schemas <group> --help.

Examples

bohr schemas list -o json
bohr schemas get envelope.v1 -o pretty
bohr schemas errors -o json
bohr schemas serve --port 8787

list, get, and errors are local and read-only. serve starts a long-running local HTTP server; --port defaults to 8787.