apiome versions show and create: inspect and cut versions from the CLI
apiome versions now has the two commands the old CLI shipped and the rewrite did not carry over,
so a terminal or CI job can manage a version's whole life without the UI.
Manage versions from the CLI.
-
apiome versions show <project> <version>takes a label, revision UUID or version tag (stable) and prints:- the version's state, dates, notes and tags;
- its class and path counts, with what was added, removed and modified against the previous published version;
- a compatibility summary from the server's engine;
- the absolute OpenAPI, Swagger UI, Arazzo and JSON Schema URLs.
--jsonreturns the version record pluscompatibility_summaryandspec_urls. -
apiome versions create <project> --version 1.2.0cuts a draft:- its classes are copied from
--baseor the latest published version, or none with--empty; --copy-pathscopies the base's paths too;--notesor--notes-filedescribe it.
The command finds the project's head itself, so the server's optimistic lock just works, and a label the project already has exits
6. - its classes are copied from
-
The overview. Manage versions from the CLI walks through every
apiome versionscommand, the REST call behind each, a release job and the exit codes. Cut a version now shows the request body the API actually takes.
