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
| Argument | Type | Required | Description |
|---|---|---|---|
FILE | text | OpenAPI / Swagger document to upgrade ('-' for stdin). |
Options
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
--to | text | yes | Target OpenAPI version: 3.0, 3.1 or 3.2. | |
--project | text | Project or catalog item (id or slug) to upgrade. | ||
--version | text | Version to upgrade (id or label; default: latest). | ||
--apply | flag | Store the upgraded document as a new version (--project only). | ||
--version-label | text | Label of the new version (with --apply; default: a date/time label). | ||
--output, -o | text | Write the upgraded document here ('-' for stdout; .yaml writes YAML). | ||
--summary | flag | Print the count per rule, not every change. |