Skip to main content

apiome connectors

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

apiome connectors​

Catalog connectors: sync gateway APIs into the catalog and compare what they serve.

apiome connectors [OPTIONS] COMMAND [ARGS]...

Subcommands: add, items, list, remove, runs, shadow-report, show, sync.

apiome connectors add​

Register a connector (POST …/connectors), after a dry run of it.

The dry run calls the provider once and prints how many APIs it would sync; nothing is stored until it answers. A refused dry run prints the provider's reason and exits 2. The credential, when given, is stored encrypted after the connector is created and is never printed.

apiome connectors add [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--kindtextyesConnector kind: kong-konnect, kong-admin, aws-apigateway, azure-apim, apigee, url, schema-registry, mcp-registry, registry. A registry connector crawls a registry; its --scope names the crawl: '{"protocol": "a2a-registry"}', xregistry or fhir-metadata.
--nametextyesA name unique in the workspace.
--base-urltextThe provider's URL, for kinds that take one.
--scopetextWhat to sync, as a JSON object or @file (for example '{"region": "eu"}').
--credentials-filetextJSON object of the kind's credential fields, or - for stdin. Never echoed.
--refresh-intervalinteger rangeSeconds between scheduled syncs (default: the deployment's).
--conflict-policytexthold-for-reviewWhen a synced API changed in Apiome: overwrite, hold-for-review, new-branch.
--dry-run / --no-dry-runflag--dry-runAsk the provider once before saving; a failing dry run saves nothing.
--formattexttableOutput: table (default) or json (the API response).

apiome connectors items​

List a connector's inventory and the catalog item each imported API became.

apiome connectors items [OPTIONS] CONNECTOR_ID

Arguments

ArgumentTypeRequiredDescription
CONNECTOR_IDtextyesConnector id.

Options

OptionTypeDefaultRequiredDescription
--statustextOnly discovered, imported, ignored or missing APIs.
--limitinteger range50At most this many APIs.
--offsetinteger range0Skip this many APIs.
--formattexttableOutput: table (default) or json (the API response).

apiome connectors list​

List the workspace's connectors with their health and last run (GET …/connectors).

apiome connectors list [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--formattexttableOutput: table (default) or json (the API response).

apiome connectors remove​

Delete a connector (DELETE …/connectors/{id}).

Scheduled syncs stop and the stored credential is destroyed; the catalog items it imported stay. Asks first unless --yes is passed (required when not interactive).

apiome connectors remove [OPTIONS] CONNECTOR_ID

Arguments

ArgumentTypeRequiredDescription
CONNECTOR_IDtextyesConnector id.

Options

OptionTypeDefaultRequiredDescription
--yes, -yflagDo not ask for confirmation.

apiome connectors runs​

List refresh runs, newest first: Git refreshes and connector syncs interleaved.

apiome connectors runs [OPTIONS] [CONNECTOR_ID]

Arguments

ArgumentTypeRequiredDescription
CONNECTOR_IDtextOnly this connector's runs (default: every Git and connector run).

Options

OptionTypeDefaultRequiredDescription
--sourcetextOnly git or connector runs.
--limitinteger range25At most this many runs.
--offsetinteger range0Skip this many runs.
--formattexttableOutput: table (default) or json (the API response).

apiome connectors shadow-report​

Print the shadow-API report (GET …/shadow-report).

A connector whose last sync failed is reported as stale on stderr, so an empty report is never mistaken for a clean one. Exit codes: 0 report printed (and no --fail-on category has a row), 6 a --fail-on category has a row, 1 unreachable, 2 rejected (auth, unknown connector, bad option).

apiome connectors shadow-report [OPTIONS]

Options

OptionTypeDefaultRequiredDescription
--connectortextOnly this connector's inventory (connector id).
--environmenttextOnly gateway APIs found in this environment.
--formattexttableOutput: table (default) or json (the API response).
--fail-ontextComma-separated categories that fail the command (exit 6) when they have a row: shadow, possible-matches, undeployed, drift.

apiome connectors show​

Show one connector (GET …/connectors/{id}); never its credential.

apiome connectors show [OPTIONS] CONNECTOR_ID

Arguments

ArgumentTypeRequiredDescription
CONNECTOR_IDtextyesConnector id.

Options

OptionTypeDefaultRequiredDescription
--formattexttableOutput: table (default) or json (the API response).

apiome connectors sync​

Sync a connector now (POST …/sync) and print the finished run.

A provider failure is a failed run, not an HTTP error: without --wait the command exits 0 once the run is recorded; with --wait it exits 7. A sync already running is refused (exit 2) unless --wait is passed.

apiome connectors sync [OPTIONS] CONNECTOR_ID

Arguments

ArgumentTypeRequiredDescription
CONNECTOR_IDtextyesConnector id.

Options

OptionTypeDefaultRequiredDescription
--waitflagExit with the run's outcome (0 succeeded, 7 failed); if a sync is already running, wait for it instead of refusing.
--timeoutfloat range600.0With --wait: seconds to wait for a running sync.
--formattexttableOutput: table (default) or json (the API response).