Skip to main content
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:
  1. The app blob’s default revision must be a draft. Otherwise APP_NO_DRAFT, hinting blobhub app push.
  2. The draft must be the one app.yaml describes: its describe version must equal app.version. Otherwise APP_DRAFT_STALE, hinting blobhub app push.
  3. describe must report no problem. Otherwise it prints each as problem: <text> on stdout and exits with APP_HAS_PROBLEMS, the message N problems. An answer whose problems is missing or not a list of sentences is never read as none: it is API_TRANSIENT_ERROR, cannot read the platform's answer: ...; nothing was committed.
  4. No committed revision may already hold this app.version. Otherwise APP_VERSION_EXISTS; bump app.version, push and commit again.
The platform runs the same checks when it commits, and its refusals map to the same codes: 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:
With --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