Skip to main content
An OpenAPI 3 spec’s operations become one CLI: each operation is a subcommand that takes its parameters and body as one flat JSON object. Every selected operation needs a description; a summary alone is not enough, and a spec with an operation that has no description is refused whole. This installs the licenses and meta parts of GitHub’s published spec, which need no token:
workspace.yaml
mirage workspace create workspace.yaml builds it on the server. In code, read the spec and register it on an existing ws:
The operation with operationId licenses/get (GET /licenses/{license}, summary “Get a license”) becomes the subcommand licenses-get:
With flags: true in the config, each subcommand takes flags instead of a single JSON string: github licenses-get --license mit rather than github licenses-get '{"license": "mit"}'. The SDK guides list how each schema type becomes a flag.

SDK guides

Python

Spec options, how operations become commands, and what a spec must hold.

TypeScript

Spec options, how operations become commands, and what a spec must hold.