Skip to main content

CLI reference

The apiome command-line client talks to the Apiome REST API. This reference is generated from the CLI's own command tree, so it lists exactly what the installed version accepts; apiome --help and apiome help <command> print the same help in a terminal. For a walkthrough, start with the CLI quick-start.

Usage​

apiome [OPTIONS] COMMAND [ARGS]...

Global options​

Global options go before the command, e.g. apiome --base-url http://localhost:8000 --json projects list.

OptionTypeDefaultRequiredDescription
--version, -VflagShow the CLI version and exit.
--base-urltextREST API base URL (overrides APIOME_BASE_URL, config file, and .env).
--tenanttextTenant UUID (overrides APIOME_TENANT_ID, config file, and .env).
--api-keytextAPI key for Tier 2 endpoints (overrides APIOME_API_KEY, config file, and .env). Prefer --api-key-file: a secret in argv is visible to other processes.
--api-key-filetextRead the API key from a file, or from stdin with '-'.
--session-tokentextUI session bearer token for auth and PAT commands (overrides APIOME_SESSION_TOKEN, config file, and .env). Prefer --session-token-file.
--session-token-filetextRead the session token from a file, or from stdin with '-'.
--env-filetextLoad settings from this dotenv file instead of the default package and cwd .env files.
--jsonflagEmit raw API JSON on stdout (machine-readable).
--verbose, --debug, -d, -vflagShow Python tracebacks on unexpected failures.
--quiet, -qflagSuppress non-essential output. Errors and --json output are unaffected.
--no-colorflagDisable colour. Also honoured: NO_COLOR, APIOME_NO_COLOR, TERM=dumb, and any non-terminal stdout.
--no-inputflagNever prompt. Commands needing confirmation fail with the flag to pass instead of hanging.
--timeoutfloat rangeHTTP timeout in seconds (default 30; import wait uses 120 unless set). For imports, prefer the per-command --import-timeout.
--no-progressflagDisable stderr progress spinner during long imports.
--insecureflagDisable TLS certificate verification. For local development with self-signed certificates only.
--install-completionflagInstall completion for the current shell.
--show-completionflagShow completion for the current shell, to copy it or customize the installation.

Commands​

CommandWhat it does
apiome authInspect signed-in identity and accessible tenants.
apiome checksRun and read the API change check suite (one verdict for a pull request).
apiome compatCompare two OpenAPI revisions via independent oasdiff compatibility evidence.
apiome configShow or change saved defaults in the user config file.
apiome contractCompile and inspect executable contract suites for a version.
apiome convertConvert a catalog item to OpenAPI (POST .../convert); print the fidelity summary + warning.
apiome diffDiff a local OpenAPI file against a published project version (CI gate).
apiome doctorQuick connectivity check against the REST service (GET /health, no API key).
apiome exportExport a version to a target format via the emitter registry.
apiome formatsList the formats this deployment supports, in which directions and at which versions.
apiome healthCheck REST service health (GET /health).
apiome helpShow concise usage, or --help for a subcommand.
apiome importImport OpenAPI, Swagger, Arazzo, JSON Schema, and JSON Schema type documents into Apiome.
apiome lintScore schema quality, list lint findings, and run the CI lint gate.
apiome mcpMCP catalog endpoints and tenant governance (policy / key capabilities).
apiome mockManage the hosted mock for published project versions.
apiome operationsInspect OpenAPI operations for a project version.
apiome pathsList and inspect OpenAPI path templates for a project version.
apiome projectsList and fetch tenant projects.
apiome propertiesList and fetch tenant properties.
apiome reposList tenant Git repositories and inspect repository files.
apiome repositoryRepository auto-refresh: trigger a refresh and inspect per-file state.
apiome schemaTest payloads against cataloged schemas (CI evidence).
apiome schemasList and fetch tenant schemas.
apiome specExport reconstructed OpenAPI/Arazzo specs.
apiome typesBrowse tenant JSON Schema primitive types.
apiome verifyRun executable contract verification and emit CI artifacts.
apiome versionsList and fetch project versions.

Exit codes​

Every command exits 0 on success, 1 on an error and 2 on bad usage or a rejected request; the quality-gate and check commands add their own codes. See Exit codes.