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, auto, avro, deliver, deliveries, evidence, graphql, grpc, openapi, preflight, presets, profiles, targets.

Options

OptionTypeDefaultRequiredDescription
--presettextRun a saved export preset (name or id): apiome export --preset NAME ARTIFACT --out PATH [--version V | --items …] [--deliver PROFILE]. Manage presets with 'apiome export presets'.

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 auto​

Run export presets on every publish of a project (auto-export), and see what each publish did.

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

Subcommands: add, list, release, remove, runs, update.

apiome export auto add​

Run an export preset on every publish of a project.

apiome export auto add [OPTIONS] PROJECT

Arguments

ArgumentTypeRequiredDescription
PROJECTtextyesThe project (id or slug).

Options

OptionTypeDefaultRequiredDescription
--presettextyesThe export preset (name or id).
--halt-attextcriticalHalt auto-delivery when the export's loss reaches this severity: critical (default: a severe or near-empty conversion, types-only, or a critical construct) or warn (any loss).
--approve-lossflagPre-approve the loss: deliver even past --halt-at.
--inactiveflagAdd it switched off.

apiome export auto list​

List the auto-export subscriptions (presets run on publish).

apiome export auto list [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--projecttextOnly this project (id or slug).
--presettextOnly this preset (name or id).

apiome export auto release​

Deliver a halted auto-export anyway (needs versions:publish). Exits 1 if a delivery failed.

apiome export auto release [OPTIONS] RUN_ID

Arguments

ArgumentTypeRequiredDescription
RUN_IDtextyesThe halted run's id.

apiome export auto remove​

Stop running a preset on publish. Past runs keep their record.

apiome export auto remove [OPTIONS] SUBSCRIPTION_ID

Arguments

ArgumentTypeRequiredDescription
SUBSCRIPTION_IDtextyesThe subscription id.

Options

OptionTypeDefaultRequiredDescription
--yes, -yflagSkip the confirmation prompt.

apiome export auto runs​

List what each publish's auto-exports did: delivered, halted (and why) or failed.

apiome export auto runs [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--projecttextOnly this project (id or slug).
--limitinteger range50How many runs, newest first.

apiome export auto update​

Change a subscription's --halt-at, its loss pre-approval, or switch it on or off.

apiome export auto update [OPTIONS] SUBSCRIPTION_ID

Arguments

ArgumentTypeRequiredDescription
SUBSCRIPTION_IDtextyesThe subscription id (apiome export auto list).

Options

OptionTypeDefaultRequiredDescription
--halt-attextHalt auto-delivery when the export's loss reaches this severity: critical (default: a severe or near-empty conversion, types-only, or a critical construct) or warn (any loss).
--approve-loss / --no-approve-lossflag--no-approve-lossPre-approve the loss, or stop pre-approving it.
--on / --offflag--offSwitch it on or off.

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 deliver​

Deliver a completed export job with one or more delivery profiles (name or id); exits 1 when a delivery failed.

apiome export deliver [OPTIONS] JOB_ID

Arguments

ArgumentTypeRequiredDescription
JOB_IDtextyesA completed export job's id.

Options

OptionTypeDefaultRequiredDescription
--profiletext (repeatable)yesProfile name or id (repeatable).

apiome export deliveries​

List every delivery of an export job across git, webhook and object storage.

apiome export deliveries [OPTIONS] JOB_ID

Arguments

ArgumentTypeRequiredDescription
JOB_IDtextyesAn export job's id.

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.
--federationflagWrite Apollo Federation v2 subgraph SDL: an extend schema @link header and an @key on every entity (synthesized from its primary key, id field or one ID field when the source has none, and reported as SYNTH in the fidelity summary).

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.
--overlaytext (repeatable)Overlay file (JSON or YAML, Overlay 1.0–1.2) to apply to the version's OpenAPI document before it is exported. Repeatable; applied in the order given. Runs the export as a job and writes JSON.
--refsbundle | dereference | splitHow shared objects are written: bundle (default — one file, $ref into components), dereference (one file, every $ref replaced by a copy of its target) or split (a root file plus one file per path item and component, joined by relative $ref: --out a directory unpacks it, a .zip path keeps the archive). Same as --option refs=…. dereference and split run the export as a job and write JSON.
--ref-cycleskeep-ref | errorWith --refs dereference, what to do with a circular $ref: keep-ref (default — keep it as $ref and report it) or error (refuse the export). Same as --option ref_cycles=….

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 presets​

List, create, change and delete the workspace's export presets (targets, options, delivery). Run one with: apiome export --preset NAME ARTIFACT --out PATH.

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

Subcommands: create, delete, list, show, update.

apiome export presets create​

Create an export preset: apiome export presets create nightly-sync --target openapi --option openapi:openapi_version=3.0 --target protobuf --deliver data-lake.

apiome export presets create [OPTIONS] NAME

Arguments

ArgumentTypeRequiredDescription
NAMEtextyesA name unique in the workspace.

Options

OptionTypeDefaultRequiredDescription
--targettext (repeatable)yesA target format (repeatable, in order): one is a single-target export, several a multi-target one.
--optiontext (repeatable)TARGET:KEY=VALUE — an emit option for one of the targets (repeatable; VALUE parsed as JSON when valid).
--delivertextA delivery profile (name or id) the export is delivered with on completion.
--descriptiontextWhat the preset is for.

apiome export presets delete​

Delete an export preset.

apiome export presets delete [OPTIONS] PRESET

Arguments

ArgumentTypeRequiredDescription
PRESETtextyesPreset name or id.

Options

OptionTypeDefaultRequiredDescription
--yes, -yflagSkip the confirmation prompt.

apiome export presets list​

List the workspace's export presets.

apiome export presets list [OPTIONS]

apiome export presets show​

Show one export preset (by name or id).

apiome export presets show [OPTIONS] PRESET

Arguments

ArgumentTypeRequiredDescription
PRESETtextyesPreset name or id.

apiome export presets update​

Change a preset's name, description, targets (replaced whole by --target / --option) or delivery (--deliver PROFILE, or --no-deliver to remove it).

apiome export presets update [OPTIONS] PRESET

Arguments

ArgumentTypeRequiredDescription
PRESETtextyesPreset name or id.

Options

OptionTypeDefaultRequiredDescription
--nametextA new name.
--descriptiontextA new description ('' clears it).
--targettext (repeatable)Replace the targets (repeatable, in order).
--optiontext (repeatable)TARGET:KEY=VALUE — an emit option for one of the targets (repeatable; VALUE parsed as JSON when valid).
--delivertextA delivery profile (name or id) the export is delivered with on completion.
--no-deliverflagRemove the preset's delivery profile.

apiome export profiles​

List, create, change and delete the workspace's export delivery profiles (git, webhook, object storage).

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

Subcommands: create, delete, deliveries, list, show, update.

apiome export profiles create​

Create a delivery profile. git: --repository [--path --base-branch --mode]. webhook: --url --secret-env VAR [--artifact]. object_storage: --credential --bucket [--prefix --partitioning].

apiome export profiles create [OPTIONS] NAME

Arguments

ArgumentTypeRequiredDescription
NAMEtextyesA name unique in the workspace.

Options

OptionTypeDefaultRequiredDescription
--channeltextyesgit, webhook or object_storage.
--descriptiontextWhat the profile is for.
--repositorytextgit: the registered repository id.
--pathtextgit: the directory the bundle is written under.
--base-branchtextgit: the base branch (default: the repository's default).
--modetextgit: pr (default) or commit.
--urltextwebhook: the receiver URL.
--secret-envtextwebhook: the environment variable holding the signing secret.
--artifacttextwebhook: auto (default) or fetch.
--credentialtextobject_storage: the storage credential id.
--buckettextobject_storage: the bucket.
--prefixtextobject_storage: the key prefix.
--partitioningtextobject_storage: artifact,version,target in order ('' for none).

apiome export profiles delete​

Delete a delivery profile. Its past deliveries keep their record.

apiome export profiles delete [OPTIONS] PROFILE

Arguments

ArgumentTypeRequiredDescription
PROFILEtextyesProfile name or id.

Options

OptionTypeDefaultRequiredDescription
--yes, -yflagSkip the confirmation prompt.

apiome export profiles deliveries​

List every delivery made with a profile, across export jobs.

apiome export profiles deliveries [OPTIONS] PROFILE

Arguments

ArgumentTypeRequiredDescription
PROFILEtextyesProfile name or id.

apiome export profiles list​

List the workspace's delivery profiles.

apiome export profiles list [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--channeltextOnly one channel: git, webhook or object_storage.

apiome export profiles show​

Show one delivery profile (by name or id). Never shows a secret.

apiome export profiles show [OPTIONS] PROFILE

Arguments

ArgumentTypeRequiredDescription
PROFILEtextyesProfile name or id.

apiome export profiles update​

Change a profile's name, description or destination. Destination flags replace the whole destination; the channel never changes. A webhook keeps its secret unless --secret-env is given.

apiome export profiles update [OPTIONS] PROFILE

Arguments

ArgumentTypeRequiredDescription
PROFILEtextyesProfile name or id.

Options

OptionTypeDefaultRequiredDescription
--nametextA new name.
--descriptiontextA new description ('' clears it).
--repositorytext
--pathtext
--base-branchtext
--modetext
--urltext
--secret-envtext
--artifacttext
--credentialtext
--buckettext
--prefixtext
--partitioningtext

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).