Skip to main content

apiome compat

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

apiome compat​

Compare two revisions: oasdiff evidence, or the native check graded by compatibility mode.

apiome compat [OPTIONS] COMMAND [ARGS]...

Options

OptionTypeDefaultRequiredDescription
--projecttextyesProject UUID or slug.
--versiontextyesHead / candidate version (UUID, slug, or label).
--base-versiontextyesBaseline version (UUID, slug, or label) to compare against.
--formattextjsonGate output format: json (default), sarif, or junit.
--fail-ontextbreakingExit non-zero when findings at this level or higher are present: breaking (default), dangerous, or info.
--modetextproject policyUse the native check graded by this compatibility mode: backward, forward, full or none (optionally with _transitive). JSON output only.
--transitive / --no-transitiveflagproject policyUse the native check, also comparing against every earlier version of the base.
--categorytextproject policyUse the native check with this Protobuf category: wire, wire_json, package or file.