Public beta — not for production use. Data may be wiped at any time. Questions? Contact us.
Documentation menu

axiom generate

Compile .proto files into language bindings

View as Markdown
<!-- GENERATED by docs/scripts/gen-cli-reference — DO NOT EDIT. Source of truth: the cobra command definitions in cmd/axiom/cmd/. Regenerate from the repo root with: go run ./docs/scripts/gen-cli-reference -->

axiom generate

Compile .proto files into language bindings

Compile all .proto files in messages/ into language bindings in gen/.

Reads axiom.yaml for the target language and shells out to protoc with the appropriate flags. Requires protoc and the language-specific protoc plugin to be installed.

protoc rewrites gen/ in place. When the regenerated bindings differ from the ones already committed in gen/, a warning is printed to stderr naming the files that changed — a moved shape means anything compiled against the old bindings, including published callers, may break. It is a warning, not an error: regenerating after an intentional .proto change is the normal workflow.

Run automatically as part of: axiom dev, axiom test, axiom build.

Usage

axiom generate [flags]

Flags

FlagShorthandTypeDefaultDescription
--help-hboolhelp for generate

See also