Skip to main content

apiome import

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

apiome import​

Import OpenAPI, Swagger, Arazzo, JSON Schema, and JSON Schema type documents into Apiome. Any other registered format (see import --list) is importable as import <format> <input>.

apiome import [OPTIONS] COMMAND [ARGS]...

Subcommands: a2a, acp, agents-manifest, arazzo, auto, avro, git, json-schema, json-schema-type, odata, openapi, openrpc, preflight, swagger, wsdl.

Options

OptionTypeDefaultRequiredDescription
--listflagList the registered import sources (formats) and exit.

apiome import a2a​

Import an A2A (Agent2Agent) Agent Card from a file, URL, stdin, or a live agent (MFI-18.1).

Exactly one of INPUT, --file, --url or --discover names the card. With --discover the card URL is resolved from the agent's well-known URI first; the card is then imported through the registered a2a adapter like any other source.

apiome import a2a [OPTIONS] [INPUT]

Arguments

ArgumentTypeRequiredDescription
SOURCEtextAgent Card path, http/https URL, or - for stdin.

Options

OptionTypeDefaultRequiredDescription
--filetextLocal document path to import (alternative to the INPUT argument).
--urltexthttp/https document URL to import (alternative to the INPUT argument).
--discovertextAgent origin (for example https://agent.example.com) whose card is fetched from /.well-known/agent-card.json, falling back to /.well-known/agent.json.
--dry-runflagValidate and preview the import without persisting changes.
--import-timeoutfloat rangeMax seconds to wait for an async import job to finish, and the per-request HTTP timeout used while waiting (default 120). Increase for large specs that take longer than the default to import. Overrides the global --timeout for this import.
--wait / --no-waitflag--waitPoll async imports until complete (default: wait).
--poll-intervalfloat range1.0Seconds between import job-status polls when waiting.
--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 import acp​

Import ACP (Agent Communication Protocol) agents from a file, URL, stdin, or a live server.

Exactly one of INPUT, --file, --url or --discover names the document. With --discover the server's /agents listing URL is derived from its base URL and imported through the registered acp adapter like any other source (MFI-18.2).

apiome import acp [OPTIONS] [INPUT]

Arguments

ArgumentTypeRequiredDescription
SOURCEtextACP agent manifest or GET /agents listing: path, http/https URL, or -.

Options

OptionTypeDefaultRequiredDescription
--filetextLocal document path to import (alternative to the INPUT argument).
--urltexthttp/https document URL to import (alternative to the INPUT argument).
--discovertextACP server base URL (for example https://acp.example.com) whose /agents listing is imported; a …/agents/<name> URL imports one agent.
--dry-runflagValidate and preview the import without persisting changes.
--import-timeoutfloat rangeMax seconds to wait for an async import job to finish, and the per-request HTTP timeout used while waiting (default 120). Increase for large specs that take longer than the default to import. Overrides the global --timeout for this import.
--wait / --no-waitflag--waitPoll async imports until complete (default: wait).
--poll-intervalfloat range1.0Seconds between import job-status polls when waiting.
--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 import agents-manifest​

Import a site's agentic-web manifest from a file, URL, stdin, or the live site.

Exactly one of INPUT, --file, --url or --discover names the document. With --discover the site's well-known manifest paths are tried in order and the first one that serves a manifest is imported through the registered agents-manifest adapter (MFI-18.3). The catalog item lists the A2A, ACP and MCP descriptors the manifest points at as discovery seeds; import each with apiome import a2a --discover / apiome import acp --discover.

apiome import agents-manifest [OPTIONS] [INPUT]

Arguments

ArgumentTypeRequiredDescription
SOURCEtextSite manifest — agents.json, agent.json, agents.txt or llms.txt: path, http/https URL, or -.

Options

OptionTypeDefaultRequiredDescription
--filetextLocal document path to import (alternative to the INPUT argument).
--urltexthttp/https document URL to import (alternative to the INPUT argument).
--discovertextSite URL (for example https://example.com) whose manifest is found at /agents.json, /.well-known/agent.json, /agents.txt or /llms.txt, tried in that order.
--dry-runflagValidate and preview the import without persisting changes.
--import-timeoutfloat rangeMax seconds to wait for an async import job to finish, and the per-request HTTP timeout used while waiting (default 120). Increase for large specs that take longer than the default to import. Overrides the global --timeout for this import.
--wait / --no-waitflag--waitPoll async imports until complete (default: wait).
--poll-intervalfloat range1.0Seconds between import job-status polls when waiting.
--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 import arazzo​

Import an Arazzo 1.0.x or 1.1.x workflow from a file, URL, stdin, archive, or directory.

apiome import arazzo [OPTIONS] PATH

Arguments

ArgumentTypeRequiredDescription
PATHtextyesArazzo document path (.json, .yaml, .yml), http/https URL, or - for stdin. A .zip/.tar.gz archive or a directory imports the workflow together with the OpenAPI/AsyncAPI files its sourceDescriptions name (COA-1.2).

Options

OptionTypeDefaultRequiredDescription
--roottextWorkflow document inside a .zip/.tar.gz archive or a directory, when the server cannot tell it from the API files it calls (COA-1.2).
--dry-runflagValidate and plan the import without persisting changes.
--project-nametextOverride project name derived from the configured project-name field.
--project-name-fieldtextDot path or JSON Pointer for the field used as the project name (for example info.summary or #/info/summary). Stored as info.x-apiome-project-name-field when omitted from the document.
--versiontextOverride version string derived from info.version.
--project-iduuidUpdate an existing project instead of creating from info.
--project-slugtextOverride project slug derived from info.title (DB slug rules).
--version-iduuidAttach workflows to this existing project version.
--version-slugtextOverride version slug derived from info.version (DB slug rules).
--publishtextPublish the imported project version immediately as public or private (tenant-protected). Omit to leave the version as draft.
--visibilitytextAlias for --publish (accepts public or private).
--wait / --no-waitflag--waitPoll async imports until complete (default: wait).
--poll-intervalfloat range1.0Seconds between GET /imports/{job_id} polls when waiting.

apiome import auto​

Detect document format from headers and run the matching import.

apiome import auto [OPTIONS] PATH

Arguments

ArgumentTypeRequiredDescription
PATHtextyesDocument path (.json, .yaml, .yml), http/https URL, or - for stdin.

Options

OptionTypeDefaultRequiredDescription
--dry-runflagValidate and plan the import without persisting changes.
--project-nametextOverride project name derived from the configured project-name field (OpenAPI/Arazzo).
--project-name-fieldtextDot path or JSON Pointer for the field used as the project name (for example info.summary or #/info/summary). Stored as info.x-apiome-project-name-field when omitted from the document. (OpenAPI/Arazzo).
--versiontextOverride version string derived from info.version (OpenAPI/Arazzo).
--project-iduuidTarget or link project for the import.
--project-slugtextOverride project slug derived from info.title (OpenAPI/Arazzo).
--version-slugtextOverride version slug derived from info.version (OpenAPI/Arazzo).
--version-iduuidAttach Arazzo workflows or JSON Schema to this project version.
--publishtextPublish the imported project version immediately as public or private (tenant-protected). Omit to leave the version as draft. (OpenAPI/Arazzo).
--visibilitytextAlias for --publish (accepts public or private). (OpenAPI/Arazzo).
--asproperty | properties | schemaJSON Schema import target: property, properties, or schema (default: auto-detect).
--nametextProperty, schema, or type name override.
--descriptiontextDescription stored on the imported JSON Schema artifact.
--link-project-propertyflagCreate a project_properties row when --project-id is set.
--wait / --no-waitflag--waitPoll async OpenAPI/Arazzo imports until complete (default: wait).
--poll-intervalfloat range1.0Seconds between GET /imports/{job_id} polls when waiting.
--forceflagWith --publish, bypass publish gates (e.g. classes missing required descriptions, breaking changes) so the version still publishes. (OpenAPI/Arazzo).
--allow-breakingflagWith --publish, publish even when the version has breaking changes versus the last published one (sends allowBreaking=true). Unlike --force, every other publish check still applies. (OpenAPI/Swagger).
--import-timeoutfloat rangeMax seconds to wait for an async import job to finish, and the per-request HTTP timeout used while waiting (default 120). Increase for large specs that take longer than the default to import. Overrides the global --timeout for this import.
--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.
--bulkflagImport every independent spec in an archive or directory (MFI-29.5): auto-detect each one, group the files that compile together, and start one import per spec. PATH must be a .zip/.tar.gz archive or a directory.
--overridetext (repeatable)Override where one item goes, as KEY=SPEC (repeatable). SPEC is 'new' (create a project), 'existing' (append to the item's matched project), 'existing:PROJECT_ID' (append to that project), and may end in '@VERSION' to name the version created. '@VERSION' alone keeps the plan's choice and only sets the label. Items with no override apply the plan as reviewed. (--bulk only)

apiome import avro​

Import an Avro schema from a file, URL, stdin, archive, or a Confluent schema registry.

Exactly one of INPUT, --file, --url or --registry names the document. With --registry the schema is read from the registry's raw-schema route (…/subjects/<subject>/versions/<version>/schema or …/schemas/ids/<id>/schema) and imported through the registered avro adapter like any other source (MFI-12.6). The subject is --subject, or is named from --topic / --record by --strategy.

apiome import avro [OPTIONS] [INPUT]

Arguments

ArgumentTypeRequiredDescription
SOURCEtextAvro schema (.avsc) or Avro IDL (.avdl): path, http/https URL, or -.

Options

OptionTypeDefaultRequiredDescription
--filetextLocal document path to import (alternative to the INPUT argument).
--urltexthttp/https document URL to import (alternative to the INPUT argument).
--registrytextConfluent-compatible schema registry base URL (for example https://registry.example.com:8081) to read the schema from; name it with --subject, --topic / --record, or --schema-id.
--subjecttextRegistry subject to import, for example orders-value.
--topictextKafka topic whose subject to import, named by --strategy (<topic>-value by default).
--strategytextSubject naming strategy: topic (<topic>-value, the default), record (<record>) or topic_record (<topic>-<record>).
--recordtextRecord full name (com.example.Order) for the record and topic_record strategies.
--keyflagImport the topic's key schema (<topic>-key).
--versiontextSubject version: latest (the default) or a number.
--schema-idintegerGlobal schema id to import instead of a subject version.
--roottextRoot document path inside a .zip/.tar.gz archive or a directory (MFI-29.1).
--dry-runflagValidate and preview the import without persisting changes.
--import-timeoutfloat rangeMax seconds to wait for an async import job to finish, and the per-request HTTP timeout used while waiting (default 120). Increase for large specs that take longer than the default to import. Overrides the global --timeout for this import.
--wait / --no-waitflag--waitPoll async imports until complete (default: wait).
--poll-intervalfloat range1.0Seconds between import job-status polls when waiting.
--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 import git​

Import a repository path or glob at a ref (MFI-29.3).

The server reads the selection at an immutable commit and packs it as the same multi-file payload an archive upload produces, so the import runs the normal pipeline — pre-flight gate included — and the created revision records which repository, ref, and commit it came from.

apiome import git [OPTIONS] REPO_URL

Arguments

ArgumentTypeRequiredDescription
REPO_URLtextyesRepository URL, for example https://github.com/owner/repo.

Options

OptionTypeDefaultRequiredDescription
--reftextBranch, tag, or commit sha (default: the repository's default branch).
--pathtextPath or glob selecting what to import — a directory (protos/), an exact file, or a glob (**/*.proto). Default: the whole tree.
--roottextRoot document inside the selection, when auto-detection is ambiguous.
--formattextImporter format key (default: the format detected for the root document).
--repository-idtextRegistered repository whose stored credential authorizes a private read.
--linked-account-idtextYour linked account whose stored credential authorizes a private read.
--dry-runflagValidate and preview the import without persisting changes.
--import-timeoutfloat rangeMax seconds to wait for an async import job to finish, and the per-request HTTP timeout used while waiting (default 120). Increase for large specs that take longer than the default to import. Overrides the global --timeout for this import.
--wait / --no-waitflag--waitPoll the import until complete (default: wait).
--poll-intervalfloat range1.0Seconds between import job-status polls when waiting.
--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 import json-schema​

Import a JSON Schema 2020-12 document from a file, URL, or stdin.

apiome import json-schema [OPTIONS] PATH

Arguments

ArgumentTypeRequiredDescription
PATHtextyesJSON Schema path (.json, .yaml, .yml), http/https URL, or - for stdin.

Options

OptionTypeDefaultRequiredDescription
--asproperty | properties | schemaImport as property, properties (all $defs entries), or schema (default: auto-detect).
--nametextProperty or schema name when not inferred from the file.
--descriptiontextDescription stored on the property or schema.
--project-iduuidLink the import to this project (project_properties when requested).
--version-iduuidLink a schema import to this project version.
--link-project-propertyflagCreate a project_properties row when --project-id is set.
--dry-runflagValidate and plan the import without persisting changes.

apiome import json-schema-type​

Import system-wide JSON Schema type definitions from a file, URL, or stdin.

apiome import json-schema-type [OPTIONS] PATH

Arguments

ArgumentTypeRequiredDescription
PATHtextyesJSON Schema type library path (.json, .yaml, .yml), http/https URL, or - for stdin.

Options

OptionTypeDefaultRequiredDescription
--dry-runflagValidate and plan the import without persisting changes.
--nametextOverride inferred type name (single-type imports only).
--descriptiontextOverride description stored on the type (single-type imports only).
--publishtextPublish imported types to the system-wide library as public, or import private to the caller's tenant only. Omit to default to tenant scope.
--visibilitytextAlias for --publish (accepts public or private).

apiome import odata​

Import OData service metadata from a file, URL, stdin, archive, or a live service.

Exactly one of INPUT, --file, --url or --discover names the document. With --discover the service's $metadata URL is derived from its root and imported through the registered odata adapter like any other source (MFI-11.3).

apiome import odata [OPTIONS] [INPUT]

Arguments

ArgumentTypeRequiredDescription
SOURCEtextOData metadata (CSDL XML / EDMX or CSDL JSON): path, http/https URL, or -.

Options

OptionTypeDefaultRequiredDescription
--filetextLocal document path to import (alternative to the INPUT argument).
--urltexthttp/https document URL to import (alternative to the INPUT argument).
--discovertextOData service root (for example https://host/odata/trippin/) whose $metadata is imported; a …/$metadata URL works too, and a query string (sap-client=100) is kept.
--roottextRoot document path inside a .zip/.tar.gz archive or a directory (MFI-29.1).
--dry-runflagValidate and preview the import without persisting changes.
--import-timeoutfloat rangeMax seconds to wait for an async import job to finish, and the per-request HTTP timeout used while waiting (default 120). Increase for large specs that take longer than the default to import. Overrides the global --timeout for this import.
--wait / --no-waitflag--waitPoll async imports until complete (default: wait).
--poll-intervalfloat range1.0Seconds between import job-status polls when waiting.
--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 import openapi​

Import an OpenAPI document from a file, URL, or stdin.

apiome import openapi [OPTIONS] PATH

Arguments

ArgumentTypeRequiredDescription
PATHtextyesOpenAPI document path (.json, .yaml, .yml), http/https URL, or - for stdin.

Options

OptionTypeDefaultRequiredDescription
--dry-runflagValidate and plan the import without persisting changes.
--project-nametextOverride project name derived from the configured project-name field.
--project-name-fieldtextDot path or JSON Pointer for the field used as the project name (for example info.summary or #/info/summary). Stored as info.x-apiome-project-name-field when omitted from the document.
--versiontextOverride version string derived from info.version.
--project-iduuidUpdate an existing project instead of creating from info.
--project-slugtextOverride project slug derived from info.title (DB slug rules).
--version-slugtextOverride version slug derived from info.version (DB slug rules).
--publishtextPublish the imported project version immediately as public or private (tenant-protected). Omit to leave the version as draft.
--visibilitytextAlias for --publish (accepts public or private).
--wait / --no-waitflag--waitPoll async imports until complete (default: wait).
--poll-intervalfloat range1.0Seconds between GET /imports/{job_id} polls when waiting.
--forceflagWith --publish, bypass publish gates (e.g. classes missing required descriptions, breaking changes) so the version still publishes.
--allow-breakingflagWith --publish, publish even when the version has breaking changes versus the last published one (sends allowBreaking=true). Unlike --force, every other publish check still applies.
--import-timeoutfloat rangeMax seconds to wait for an async import job to finish, and the per-request HTTP timeout used while waiting (default 120). Increase for large specs that take longer than the default to import. Overrides the global --timeout for this import.
--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 import openrpc​

Import an OpenRPC document from a file, URL, stdin, archive, or a live JSON-RPC service.

Exactly one of INPUT, --file, --url or --discover names the document. With --discover the CLI calls the endpoint's rpc.discover method and imports the document it returns through the registered openrpc adapter like any other source (MFI-19.1).

apiome import openrpc [OPTIONS] [INPUT]

Arguments

ArgumentTypeRequiredDescription
SOURCEtextOpenRPC document: path, http/https URL, -, or an archive.

Options

OptionTypeDefaultRequiredDescription
--filetextLocal document path to import (alternative to the INPUT argument).
--urltexthttp/https document URL to import (alternative to the INPUT argument).
--discovertextJSON-RPC 2.0 endpoint (for example https://rpc.example.com/) whose OpenRPC document is read by calling its rpc.discover method.
--roottextRoot document path inside a .zip/.tar.gz archive or a directory (MFI-29.1).
--dry-runflagValidate and preview the import without persisting changes.
--import-timeoutfloat rangeMax seconds to wait for an async import job to finish, and the per-request HTTP timeout used while waiting (default 120). Increase for large specs that take longer than the default to import. Overrides the global --timeout for this import.
--wait / --no-waitflag--waitPoll async imports until complete (default: wait).
--poll-intervalfloat range1.0Seconds between import job-status polls when waiting.
--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 import preflight​

Score a candidate document before importing it — lint grade, ranked findings, and the tenant quality-policy verdict. Nothing is persisted and no import 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 import preflight [OPTIONS] [INPUT]

Arguments

ArgumentTypeRequiredDescription
SOURCEtextDocument path, http/https URL, or '-' for stdin.

Options

OptionTypeDefaultRequiredDescription
--filetextLocal document path to import (alternative to the INPUT argument).
--urltexthttp/https document URL to import (alternative to the INPUT argument).
--formattextRegistry key of the adapter to score against (source_kind). Omit to auto-detect; the detection verdict is reported either way.
--roottextRoot document path inside a .zip/.tar.gz archive (MFI-29.1).
--targettextDestination a commit would request: catalog, types, or project. Consulted only for JSON Schema, exactly as on the import job.
--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 import swagger​

Import a Swagger 2.0 document from a file, URL, or stdin.

apiome import swagger [OPTIONS] PATH

Arguments

ArgumentTypeRequiredDescription
PATHtextyesSwagger 2.0 document path (.json, .yaml, .yml), http/https URL, or - for stdin.

Options

OptionTypeDefaultRequiredDescription
--dry-runflagValidate and plan the import without persisting changes.
--project-nametextOverride project name derived from the configured project-name field.
--project-name-fieldtextDot path or JSON Pointer for the field used as the project name (for example info.summary or #/info/summary). Stored as info.x-apiome-project-name-field when omitted from the document.
--versiontextOverride version string derived from info.version.
--project-iduuidUpdate an existing project instead of creating from info.
--project-slugtextOverride project slug derived from info.title (DB slug rules).
--version-slugtextOverride version slug derived from info.version (DB slug rules).
--publishtextPublish the imported project version immediately as public or private (tenant-protected). Omit to leave the version as draft.
--visibilitytextAlias for --publish (accepts public or private).
--wait / --no-waitflag--waitPoll async imports until complete (default: wait).
--poll-intervalfloat range1.0Seconds between GET /imports/{job_id} polls when waiting.
--forceflagWith --publish, bypass publish gates (e.g. classes missing required descriptions, breaking changes) so the version still publishes.
--allow-breakingflagWith --publish, publish even when the version has breaking changes versus the last published one (sends allowBreaking=true). Unlike --force, every other publish check still applies.
--import-timeoutfloat rangeMax seconds to wait for an async import job to finish, and the per-request HTTP timeout used while waiting (default 120). Increase for large specs that take longer than the default to import. Overrides the global --timeout for this import.
--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 import wsdl​

Import a SOAP service's WSDL from a file, URL, stdin, archive, or a live service.

Exactly one of INPUT, --file, --url or --discover names the document. With --discover the service's ?singleWsdl (else ?wsdl) URL is found and imported through the registered wsdl adapter like any other source (MFI-13.3).

apiome import wsdl [OPTIONS] [INPUT]

Arguments

ArgumentTypeRequiredDescription
SOURCEtextWSDL 1.1 / 2.0 document: path, http/https URL, -, or an archive.

Options

OptionTypeDefaultRequiredDescription
--filetextLocal document path to import (alternative to the INPUT argument).
--urltexthttp/https document URL to import (alternative to the INPUT argument).
--discovertextSOAP service endpoint (for example https://host/Calculator.svc) whose WSDL is imported: ?singleWsdl (every import inlined) when the service offers it, else ?wsdl.
--roottextRoot document path inside a .zip/.tar.gz archive or a directory (MFI-29.1).
--dry-runflagValidate and preview the import without persisting changes.
--import-timeoutfloat rangeMax seconds to wait for an async import job to finish, and the per-request HTTP timeout used while waiting (default 120). Increase for large specs that take longer than the default to import. Overrides the global --timeout for this import.
--wait / --no-waitflag--waitPoll async imports until complete (default: wait).
--poll-intervalfloat range1.0Seconds between import job-status polls when waiting.
--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.