Skip to main content

apiome upgrade

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

apiome upgrade​

Plan (and optionally apply) an upgrade to OpenAPI 3.0, 3.1 or 3.2, listing every change.

apiome upgrade [OPTIONS] [FILE]

Arguments

ArgumentTypeRequiredDescription
FILEtextOpenAPI / Swagger document to upgrade ('-' for stdin).

Options

OptionTypeDefaultRequiredDescription
--totextyesTarget OpenAPI version: 3.0, 3.1 or 3.2.
--projecttextProject or catalog item (id or slug) to upgrade.
--versiontextVersion to upgrade (id or label; default: latest).
--applyflagStore the upgraded document as a new version (--project only).
--version-labeltextLabel of the new version (with --apply; default: a date/time label).
--output, -otextWrite the upgraded document here ('-' for stdout; .yaml writes YAML).
--summaryflagPrint the count per rule, not every change.