Skip to content

CLI reference

The main (and currently only) command. Reads an OpenAPI 3.1 spec and writes generated Rust code.

FlagDescription
--input, -iPath to the OpenAPI spec file (YAML or JSON)
--output, -oDirectory to write generated code into
--frameworkTarget framework. Currently only axum is supported
Terminal window
orator generate -i api.yaml -o src/generated --framework axum