Skip to main content

apiome export

Global options such as --base-url, --tenant and --json go before the command — see CLI reference. Exit codes are listed in Exit codes.

apiome export​

Export a version to a target format via the emitter registry. Registered targets are also invokable as export <format> <artifact> (async job + poll). export evidence --json returns the machine-readable projection evidence (snapshot hash, status/reason counts, per-construct rows). A lossy/types-only export exits non-zero without --force, and a job whose acknowledged preview snapshot no longer matches fails with STALE_PREVIEW — re-preview and acknowledge the current snapshot.

apiome export [OPTIONS] COMMAND [ARGS]...

Subcommands: asyncapi, avro, evidence, graphql, grpc, openapi, preflight, targets.

apiome export asyncapi​

Export a version as AsyncAPI 3 + a fidelity report. With --output -, document bytes are written to stdout; the fidelity summary and --json metadata are written to stderr so stdout stays byte-safe for pipelines.

apiome export asyncapi [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--projecttextyesProject UUID or slug.
--versiontextyesVersion UUID, slug, or label.
--output, -otextyesDestination file path, or - for stdout (document bytes only).
--tenanttextTenant UUID or slug (overrides APIOME_TENANT_ID).
--yamlflagRequest YAML serialization (default JSON). Alias for --accept yaml.
--accepttextResponse serialization: json or yaml (default json).
--forceflagWrite and exit 0 even when the export loses fidelity (lossy/types-only).
--min-gradetextFail when the lint grade is worse than this (A best, F worst). Exits 4 when the threshold is missed.
--fail-ontextFail when the lint report has any finding at or above this severity (error, warning, info). Exits 4 when the threshold is missed.

apiome export avro​

Export a version as Avro .avsc + a fidelity report. With --output -, document bytes go to stdout; fidelity summary and --json metadata go to stderr.

apiome export avro [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--projecttextyesProject UUID or slug.
--versiontextyesVersion UUID, slug, or label.
--output, -otextyesDestination file path, or - for stdout (document bytes only).
--tenanttextTenant UUID or slug (overrides APIOME_TENANT_ID).
--forceflagWrite and exit 0 even when the export loses fidelity (lossy/types-only).
--min-gradetextFail when the lint grade is worse than this (A best, F worst). Exits 4 when the threshold is missed.
--fail-ontextFail when the lint report has any finding at or above this severity (error, warning, info). Exits 4 when the threshold is missed.

apiome export evidence​

Page through source→target projection evidence for one configured export.

apiome export evidence [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--projecttextyesProject UUID or slug.
--targettextyesTarget emitter key (e.g. openapi) or format key (e.g. openapi-3.1).
--versiontextVersion UUID, slug, or label (default: latest revision).
--optiontext (repeatable)Per-target emit option as key=value (repeatable). Folded into the snapshot hash — different options are a different snapshot.
--cursortextOpaque cursor from a previous page (default: first page).
--limitinteger rangeMaximum evidence rows per page (server clamps to its hard cap).
--redact-sourceflagDeprecated no-op (EFP-3.2): REST always redacts source-native evidence.
--tenanttextTenant UUID or slug (overrides APIOME_TENANT_ID).

apiome export graphql​

Export a version as GraphQL SDL + a fidelity report. With --output -, document bytes go to stdout; fidelity summary and --json metadata go to stderr.

apiome export graphql [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--projecttextyesProject UUID or slug.
--versiontextyesVersion UUID, slug, or label.
--output, -otextyesDestination file path, or - for stdout (document bytes only).
--tenanttextTenant UUID or slug (overrides APIOME_TENANT_ID).
--forceflagWrite and exit 0 even when the export loses fidelity (lossy/types-only).
--min-gradetextFail when the lint grade is worse than this (A best, F worst). Exits 4 when the threshold is missed.
--fail-ontextFail when the lint report has any finding at or above this severity (error, warning, info). Exits 4 when the threshold is missed.

apiome export grpc​

Export a version as proto3 (.proto) + a fidelity report. With --output -, document bytes go to stdout; fidelity summary and --json metadata go to stderr.

apiome export grpc [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--projecttextyesProject UUID or slug.
--versiontextyesVersion UUID, slug, or label.
--output, -otextyesDestination file path, or - for stdout (document bytes only).
--tenanttextTenant UUID or slug (overrides APIOME_TENANT_ID).
--forceflagWrite and exit 0 even when the export loses fidelity (lossy/types-only).
--min-gradetextFail when the lint grade is worse than this (A best, F worst). Exits 4 when the threshold is missed.
--fail-ontextFail when the lint report has any finding at or above this severity (error, warning, info). Exits 4 when the threshold is missed.

apiome export openapi​

Export a version as OpenAPI + a fidelity report. With --output -, document bytes are written to stdout; the fidelity summary and --json metadata are written to stderr so stdout stays byte-safe for pipelines.

apiome export openapi [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--projecttextyesProject UUID or slug.
--versiontextyesVersion UUID, slug, or label.
--output, -otextyesDestination file path, or - for stdout (document bytes only).
--tenanttextTenant UUID or slug (overrides APIOME_TENANT_ID).
--yamlflagRequest YAML serialization (default JSON). Alias for --accept yaml.
--accepttextResponse serialization: json or yaml (default json).
--forceflagWrite and exit 0 even when the export loses fidelity (lossy/types-only).
--min-gradetextFail when the lint grade is worse than this (A best, F worst). Exits 4 when the threshold is missed.
--fail-ontextFail when the lint report has any finding at or above this severity (error, warning, info). Exits 4 when the threshold is missed.

apiome export preflight​

Rank every export target for one revision — source lint, projected fidelity, capability fit, and the tenant quality-policy verdict. Nothing is emitted and no export job is created. Gate exit codes: 3 = tenant quality policy blocked, 4 = --min-grade/--fail-on threshold missed, 5 = nothing gradable (candidate unimportable / no usable target). These are distinct from transport (1) and usage/auth (2) failures.

apiome export preflight [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--projecttextyesProject (artifact) UUID or slug to rank targets for.
--versiontextRevision UUID, slug, or version label (default: latest revision).
--totext (repeatable)Restrict the ranking to this target key (openapi) or format key (openapi-3.1). Repeatable; omit to rank every registered target.
--tenanttextTenant UUID or slug (overrides APIOME_TENANT_ID).
--min-gradetextFail when the lint grade is worse than this (A best, F worst). Exits 4 when the threshold is missed.
--fail-ontextFail when the lint report has any finding at or above this severity (error, warning, info). Exits 4 when the threshold is missed.

apiome export targets​

List the emitter registry targets + fidelity for a version.

apiome export targets [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--projecttextyesProject UUID or slug.
--versiontextVersion UUID, slug, or label (default: latest revision).
--tenanttextTenant UUID or slug (overrides APIOME_TENANT_ID).