commit makes the draft a version. A version is a committed revision named by app.version; it never changes again,
and a fix is the next version.
Synopsis
What it does
It checks what it can before it asks the platform to commit:- The app blob’s default revision must be a draft. Otherwise
APP_NO_DRAFT, hintingblobhub app push. - The draft must be the one
app.yamldescribes: itsdescribeversion must equalapp.version. OtherwiseAPP_DRAFT_STALE, hintingblobhub app push. describemust report no problem. Otherwise it prints each asproblem: <text>on stdout and exits withAPP_HAS_PROBLEMS, the messageN problems. An answer whoseproblemsis missing or not a list of sentences is never read as none: it isAPI_TRANSIENT_ERROR,cannot read the platform's answer: ...; nothing was committed.- No committed revision may already hold this
app.version. OtherwiseAPP_VERSION_EXISTS; bumpapp.version, push and commit again.
invalid_app to
APP_HAS_PROBLEMS and version_in_use to APP_VERSION_EXISTS; blob_not_ready is BLOB_NOT_READY, as on every
command. The CLI prints each problem a refusal names as problem: <text> on stdout, as its own checks do, then fails
with the platform’s own message; under --json, stdout is empty and the problems an invalid_app refusal names are
in problems. Nothing is committed.
It then commits with the message as the comment and waits up to 120 seconds for the revision’s phase to become
commit. The line names the revision by the first eight characters of its id:
--json, the result is app, version and revision_id, the whole id.
Errors
Every code above, with its remediation, is in Error codes.
See also
blobhub app push— makes the draft the commit reads.blobhub app ls— lists the versions committed.- App blob versions — what a version is, and why one is never reopened.

