Skip to content

Command line

Look here when you script oryva or wire it into CI: every command, every flag and every exit code. oryva help prints the same summary.

Exit code Meaning
0 Success.
1 Breaking changes (diff), a break for users of the old SDK (compat), lint errors or failed tasks (eval), or no valid key (key).
2 A usage or runtime error. The message starts with error:.

oryva generate

oryva generate <spec.yaml|spec.json> [--out <dir>] [--force]
oryva generate [--config <oryva.yml>] [--force]

With a spec, writes every target under <dir>: the Python SDK to <dir>/python, its MCP server to <dir>/mcp, and the TypeScript, C#, Go, Rust, Java, Kotlin, Ruby and PHP SDKs to <dir>/typescript, <dir>/csharp, <dir>/go, <dir>/rust, <dir>/java, <dir>/kotlin, <dir>/ruby and <dir>/php. Without a key it skips the targets that need one.

Without a spec, reads the spec, names, version and output paths from the config. See oryva.yml.

Flag Meaning
--out <dir> With a spec: where to write. Default: out/<api name>.
--config <path> Without a spec: the config to read. Default: ./oryva.yml.
--force Overwrite generated files you edited by hand. Without it, such edits stop the run before anything is written.

Give a spec or --config, not both; --out works only with a spec.

oryva diff

oryva diff <old> <new> [--version <current>] [--json]

Reports the breaking, minor and patch changes between two specs or two ir.json files, as Markdown. Exits with 1 when a change is breaking.

Flag Meaning
--version <current> Also print the next version after <current>: a breaking change bumps the major (the minor while on 0.x), an addition the minor, any other change the patch.
--json Print the report as JSON.

oryva import stainless

oryva import stainless <stainless.yml> <spec>

Writes ./oryva.yml from a Stainless config, keeping its resource, method and model names, package names and environments, and lists what it can't keep. Refuses to overwrite an oryva.yml that exists. Needs an oryva key, read from ORYVA_KEY only. See Moving from Stainless.

oryva compat

oryva compat <old-sdk-dir> [--lang <language>] [--config <oryva.yml>] [--json]

Compares the public API of an existing Python, TypeScript, Go, Java, Kotlin or C# SDK with the one oryva generates from the config: clients, methods, parameters and models. Exits with 1 when code written against the old SDK would break. Needs an oryva key.

Flag Meaning
--lang <language> python, typescript, go, java, kotlin or csharp. Default: found from the directory's build files.
--config <path> The config to generate from. Default: ./oryva.yml.
--json Print the differences as JSON.

oryva eval

oryva eval <tasks.yaml> [--lint-only] [--json <file>]

Lints an MCP server's tools, then runs the tasks with Claude and reports pass rate, tokens, tool errors and recoveries. Running tasks needs ANTHROPIC_API_KEY (or ANTHROPIC_AUTH_TOKEN); lint only needs no key. Exits with 1 when the lint finds errors or a task fails. Works with any MCP server that runs over stdio, not only the ones oryva generates.

Flag Meaning
--lint-only Lint the tools; don't run the tasks.
--json <file> Also write the lint and run reports to <file> as JSON.

The task file:

server:                       # the MCP server to start, over stdio
  command: ledger-mcp
  args: []                    # optional
  env:                        # optional; ${VAR} and ${VAR:-default} read your environment
    LEDGER_API_KEY: ${LEDGER_API_KEY:-test}
model: claude-opus-5-5        # optional; this is the default
effort: high                  # optional
max_turns: 12                 # optional; this is the default
system: You are a careful assistant.   # optional system prompt
tasks:
  - id: find-customer
    prompt: Find the customer whose email is c3@example.com and tell me their ID.
    expect:                   # every key optional
      tools_called: [customers_list]
      tools_not_called: [customers_delete]
      answer_contains: [cus_3]
      max_tool_errors: 0
      max_tool_calls: 5

${VAR} and ${VAR:-default} are expanded in the server section only. ANTHROPIC_BASE_URL points the run at another endpoint for the Anthropic API.

oryva key

oryva key [--config <oryva.yml>]

Shows who oryva is licensed to, the plan, what it unlocks, when the key expires and, for a key issued for GitHub organizations, which ones. The key comes from ORYVA_KEY, else from the file that key_file in the config names (default config: ./oryva.yml). Without a valid key, says what the free tier covers and exits with 1. See oryva keys.

oryva help

oryva help

Prints the usage summary. -h and --help do the same.