apiome spec
Global options such as --base-url, --tenant and --json go before the command — see CLI reference. Exit codes are listed in Exit codes.
apiome spec
Export reconstructed OpenAPI/Arazzo specs.
apiome spec [OPTIONS] COMMAND [ARGS]...
Subcommands: download-original, export.
apiome spec download-original
Download original import bytes. With --output -, document bytes are written to stdout; --json metadata is written to stderr so stdout stays byte-safe for pipelines.
apiome spec download-original [OPTIONS]
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--import-id | text | yes | Project version UUID that owned the original import artifact. | |
--output, -o | text | yes | Destination file path, or - for stdout (artifact bytes only). |
apiome spec export
Export reconstructed OpenAPI or Arazzo. With --output -, document bytes are written to stdout; --json metadata is written to stderr so stdout stays byte-safe for pipelines.
apiome spec export [OPTIONS]
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--project | text | yes | Project UUID or slug. | |
--version | text | yes | Version UUID, slug, or label. | |
--format | text | openapi | Export format: openapi or arazzo. | |
--output, -o | text | yes | Destination file path, or - for stdout (document bytes only). | |
--tenant | text | Tenant UUID or slug (overrides APIOME_TENANT_ID). Required for browse export. | ||
--yaml | flag | Request YAML serialization (default JSON). Alias for --accept yaml. | ||
--accept | text | Response serialization: json or yaml (REST accept query; default json). |