push builds the repository and makes the app blob’s draft revision hold exactly what build/ holds: it uploads the
files whose content changed, deletes the ones that are gone, writes the Readme and the License, and asks the platform to
read the result with describe.
With --install, it then installs the draft as a development installation, so one command takes the repository to
running blobs.
Synopsis
--installer, --input and --yes mean something only with --install. Without it, push exits 2 with the usage
error --installer, --input and --yes apply only with --install, before any call.
What it does
- Builds, exactly as
builddoes. - Reads the app blob
app.aliasin--org. The first push creates it, private, and waits up to 120 seconds until it is ready. - If the blob’s default revision is committed, creates a draft revision and waits up to 120 seconds until it is the blob’s ready default.
- Lists the draft’s files with their SHA-256, puts each
build/file whose hash differs, and deletes each filebuild/no longer has. A second push of unchanged sources makes no write. - Writes
README.mdandLICENSEas the revision’s Readme and License, only when their text differs. They travel as revision metadata, not as files. - Runs
describeand prints what it found.
created app blob acme-corp/field-reports, private; a push to a blob whose default is
already a draft has no opened line, and updated readme or updated license appears only when that text changed.
When describe reports problems, push prints each as problem: <text>, then exits 1 with APP_HAS_PROBLEMS and
the message N problems. The draft is uploaded either way, so fixing the sources and pushing again converges, and
--install installs nothing. A describe answer whose problems is missing or not a list of sentences is refused
API_TRANSIENT_ERROR before the describe: line, never read as 0 problems: the message is
cannot read the platform's answer: ..., and it ends ; nothing was installed only with --install.
With --json, the result is one JSON document on stdout: app, revision_id, created, opened, changed and
deleted (paths), metadata (the items written), describe (its app, blobs and inputs), problems, and
install. A refusal leaves stdout empty and is one JSON document on stderr. When an install fails, the error’s
problems hold the log’s error entries, or its last five entries when none is an error; a timeout holds the last five.
A refusal at write time, after the plan was confirmed, keeps the refusal’s problems too: a limit reached since the
plan (LIMIT_EXCEEDED), whose human output prints only the message, or an installer blob a delete claims while the
install call runs (BLOB_NOT_READY), whose problem prints first. A refusal of the plan, APP_NOT_CONFIRMED,
INSTALL_HAS_PROBLEMS or PLAN_CHANGED, carries confirm as
installer install describes.
--install
--install reports-dev installs the draft (version: draft) over the installation reports-dev. It is possible only
in the app blob’s own organization: for a draft in another, the platform refuses the installation. A draft’s
installation is a development installation, whose blobs stay
editable, so a graph can be changed in the visual editor and copied back with pull.
The installer is installed-apps in the app’s organization unless --installer names another. A missing installer blob
is created first and the line created installer blob acme-corp/installed-apps says so. It prints the plan, headed
installing the draft over acme-corp/installed-apps · reports-dev.
push --install confirms the plan for you when the installation is new or a development one, and the plan’s
deletes, which the CLI reads rather than the lines, is empty. It
waits for --yes in two cases: a plan that deletes a blob, and an uninstalled installation that was not a development
one, which the draft makes again as one. Without --yes it then prints the plan, exits 1 with the line
refused: pass --yes to install (APP_NOT_CONFIRMED) and installs nothing. A ready or failed installation of
committed versions never takes the draft: its plan names the problem development_mismatch, and the push ends with
refused: 1 problem; nothing was installed (INSTALL_HAS_PROBLEMS), --yes or not. Install the draft as another
installation, such as reports-dev.
Once confirmed, the install sends the plan’s digest, as installer install does, and
follows the installation, printing each log line as it is written (HH:MM:SS message, and see
the log), until the installation is ready. It exits 1 with
INSTALLATION_FAILED when it fails and gives up after 30 minutes with INSTALLATION_FOLLOW_TIMEOUT. A plan that has
changed by then installs nothing, and the push ends with
refused: the plan changed while it was confirmed; nothing was installed (PLAN_CHANGED).
--input supplies the installation’s inputs. name=value is text, name=@path reads a .json, .yaml or .yml
file as a document and any other file as text, and name=env:VAR reads an environment variable, so a secret such as
weather_key never appears in a command line:
--json. What --input refuses before any request is under
--input.
Errors
Every code above, with its remediation, is in Error codes.
See also
blobhub app build— the buildpushruns first.blobhub app pull— copies edits made in a development installation back.blobhub app commit— makes the draft a version.- Installer commands — installing a committed version, and following the log.
- App blob type — revisions, drafts and versions.

