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
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--preset | text | Run 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
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--project | text | yes | Project UUID or slug. | |
--version | text | yes | Version UUID, slug, or label. | |
--output, -o | text | yes | Destination file path, or - for stdout (document bytes only). | |
--tenant | text | Tenant UUID or slug (overrides APIOME_TENANT_ID). | ||
--yaml | flag | Request YAML serialization (default JSON). Alias for --accept yaml. | ||
--accept | text | Response serialization: json or yaml (default json). | ||
--force | flag | Write and exit 0 even when the export loses fidelity (lossy/types-only). | ||
--min-grade | text | Fail when the lint grade is worse than this (A best, F worst). Exits 4 when the threshold is missed. | ||
--fail-on | text | Fail 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
| Argument | Type | Required | Description |
|---|---|---|---|
PROJECT | text | yes | The project (id or slug). |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--preset | text | yes | The export preset (name or id). | |
--halt-at | text | critical | Halt 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 | flag | Pre-approve the loss: deliver even past --halt-at. | ||
--inactive | flag | Add it switched off. |
apiome export auto list
List the auto-export subscriptions (presets run on publish).
apiome export auto list [OPTIONS]
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--project | text | Only this project (id or slug). | ||
--preset | text | Only 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
| Argument | Type | Required | Description |
|---|---|---|---|
RUN_ID | text | yes | The 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
| Argument | Type | Required | Description |
|---|---|---|---|
SUBSCRIPTION_ID | text | yes | The subscription id. |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--yes, -y | flag | Skip 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
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--project | text | Only this project (id or slug). | ||
--limit | integer range | 50 | How 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
| Argument | Type | Required | Description |
|---|---|---|---|
SUBSCRIPTION_ID | text | yes | The subscription id (apiome export auto list). |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--halt-at | text | Halt 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-loss | flag | --no-approve-loss | Pre-approve the loss, or stop pre-approving it. | |
--on / --off | flag | --off | Switch 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
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--project | text | yes | Project UUID or slug. | |
--version | text | yes | Version UUID, slug, or label. | |
--output, -o | text | yes | Destination file path, or - for stdout (document bytes only). | |
--tenant | text | Tenant UUID or slug (overrides APIOME_TENANT_ID). | ||
--force | flag | Write and exit 0 even when the export loses fidelity (lossy/types-only). | ||
--min-grade | text | Fail when the lint grade is worse than this (A best, F worst). Exits 4 when the threshold is missed. | ||
--fail-on | text | Fail 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
| Argument | Type | Required | Description |
|---|---|---|---|
JOB_ID | text | yes | A completed export job's id. |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--profile | text (repeatable) | yes | Profile 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
| Argument | Type | Required | Description |
|---|---|---|---|
JOB_ID | text | yes | An export job's id. |
apiome export evidence
Page through source→target projection evidence for one configured export.
apiome export evidence [OPTIONS]
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--project | text | yes | Project UUID or slug. | |
--target | text | yes | Target emitter key (e.g. openapi) or format key (e.g. openapi-3.1). | |
--version | text | Version UUID, slug, or label (default: latest revision). | ||
--option | text (repeatable) | Per-target emit option as key=value (repeatable). Folded into the snapshot hash — different options are a different snapshot. | ||
--cursor | text | Opaque cursor from a previous page (default: first page). | ||
--limit | integer range | Maximum evidence rows per page (server clamps to its hard cap). | ||
--redact-source | flag | Deprecated no-op (EFP-3.2): REST always redacts source-native evidence. | ||
--tenant | text | Tenant 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
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--project | text | yes | Project UUID or slug. | |
--version | text | yes | Version UUID, slug, or label. | |
--output, -o | text | yes | Destination file path, or - for stdout (document bytes only). | |
--tenant | text | Tenant UUID or slug (overrides APIOME_TENANT_ID). | ||
--force | flag | Write and exit 0 even when the export loses fidelity (lossy/types-only). | ||
--min-grade | text | Fail when the lint grade is worse than this (A best, F worst). Exits 4 when the threshold is missed. | ||
--fail-on | text | Fail when the lint report has any finding at or above this severity (error, warning, info). Exits 4 when the threshold is missed. | ||
--federation | flag | Write 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
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--project | text | yes | Project UUID or slug. | |
--version | text | yes | Version UUID, slug, or label. | |
--output, -o | text | yes | Destination file path, or - for stdout (document bytes only). | |
--tenant | text | Tenant UUID or slug (overrides APIOME_TENANT_ID). | ||
--force | flag | Write and exit 0 even when the export loses fidelity (lossy/types-only). | ||
--min-grade | text | Fail when the lint grade is worse than this (A best, F worst). Exits 4 when the threshold is missed. | ||
--fail-on | text | Fail 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
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--project | text | yes | Project UUID or slug. | |
--version | text | yes | Version UUID, slug, or label. | |
--output, -o | text | yes | Destination file path, or - for stdout (document bytes only). | |
--tenant | text | Tenant UUID or slug (overrides APIOME_TENANT_ID). | ||
--yaml | flag | Request YAML serialization (default JSON). Alias for --accept yaml. | ||
--accept | text | Response serialization: json or yaml (default json). | ||
--force | flag | Write and exit 0 even when the export loses fidelity (lossy/types-only). | ||
--min-grade | text | Fail when the lint grade is worse than this (A best, F worst). Exits 4 when the threshold is missed. | ||
--fail-on | text | Fail when the lint report has any finding at or above this severity (error, warning, info). Exits 4 when the threshold is missed. | ||
--overlay | text (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. | ||
--refs | bundle | dereference | split | How 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-cycles | keep-ref | error | With --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
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--project | text | yes | Project (artifact) UUID or slug to rank targets for. | |
--version | text | Revision UUID, slug, or version label (default: latest revision). | ||
--to | text (repeatable) | Restrict the ranking to this target key (openapi) or format key (openapi-3.1). Repeatable; omit to rank every registered target. | ||
--tenant | text | Tenant UUID or slug (overrides APIOME_TENANT_ID). | ||
--min-grade | text | Fail when the lint grade is worse than this (A best, F worst). Exits 4 when the threshold is missed. | ||
--fail-on | text | Fail 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
| Argument | Type | Required | Description |
|---|---|---|---|
NAME | text | yes | A name unique in the workspace. |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--target | text (repeatable) | yes | A target format (repeatable, in order): one is a single-target export, several a multi-target one. | |
--option | text (repeatable) | TARGET:KEY=VALUE — an emit option for one of the targets (repeatable; VALUE parsed as JSON when valid). | ||
--deliver | text | A delivery profile (name or id) the export is delivered with on completion. | ||
--description | text | What the preset is for. |
apiome export presets delete
Delete an export preset.
apiome export presets delete [OPTIONS] PRESET
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
PRESET | text | yes | Preset name or id. |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--yes, -y | flag | Skip 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
| Argument | Type | Required | Description |
|---|---|---|---|
PRESET | text | yes | Preset 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
| Argument | Type | Required | Description |
|---|---|---|---|
PRESET | text | yes | Preset name or id. |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--name | text | A new name. | ||
--description | text | A new description ('' clears it). | ||
--target | text (repeatable) | Replace the targets (repeatable, in order). | ||
--option | text (repeatable) | TARGET:KEY=VALUE — an emit option for one of the targets (repeatable; VALUE parsed as JSON when valid). | ||
--deliver | text | A delivery profile (name or id) the export is delivered with on completion. | ||
--no-deliver | flag | Remove 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
| Argument | Type | Required | Description |
|---|---|---|---|
NAME | text | yes | A name unique in the workspace. |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--channel | text | yes | git, webhook or object_storage. | |
--description | text | What the profile is for. | ||
--repository | text | git: the registered repository id. | ||
--path | text | git: the directory the bundle is written under. | ||
--base-branch | text | git: the base branch (default: the repository's default). | ||
--mode | text | git: pr (default) or commit. | ||
--url | text | webhook: the receiver URL. | ||
--secret-env | text | webhook: the environment variable holding the signing secret. | ||
--artifact | text | webhook: auto (default) or fetch. | ||
--credential | text | object_storage: the storage credential id. | ||
--bucket | text | object_storage: the bucket. | ||
--prefix | text | object_storage: the key prefix. | ||
--partitioning | text | object_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
| Argument | Type | Required | Description |
|---|---|---|---|
PROFILE | text | yes | Profile name or id. |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--yes, -y | flag | Skip the confirmation prompt. |
apiome export profiles deliveries
List every delivery made with a profile, across export jobs.
apiome export profiles deliveries [OPTIONS] PROFILE
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
PROFILE | text | yes | Profile name or id. |
apiome export profiles list
List the workspace's delivery profiles.
apiome export profiles list [OPTIONS]
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--channel | text | Only 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
| Argument | Type | Required | Description |
|---|---|---|---|
PROFILE | text | yes | Profile 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
| Argument | Type | Required | Description |
|---|---|---|---|
PROFILE | text | yes | Profile name or id. |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--name | text | A new name. | ||
--description | text | A new description ('' clears it). | ||
--repository | text | |||
--path | text | |||
--base-branch | text | |||
--mode | text | |||
--url | text | |||
--secret-env | text | |||
--artifact | text | |||
--credential | text | |||
--bucket | text | |||
--prefix | text | |||
--partitioning | text |
apiome export targets
List the emitter registry targets + fidelity for a version.
apiome export targets [OPTIONS]
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--project | text | yes | Project UUID or slug. | |
--version | text | Version UUID, slug, or label (default: latest revision). | ||
--tenant | text | Tenant UUID or slug (overrides APIOME_TENANT_ID). |