Skip to main content
An app is written in a git repository and published as a blob. The app command group is the path between the two: build compiles the repository’s sources, push makes the app blob’s draft equal that build, pull copies edits made in the visual editor back, commit turns the draft into a version, and ls lists the versions. What an app is, and how an organization installs it, is defined elsewhere; this group makes the files. The examples use the fictional Field Reports app, acme-corp/field-reports.

The repository

The app is app.yaml, blobs/ and schemas/, with README.md and LICENSE. Everything else is the repository’s. app.yaml and each folder’s blob.yaml are the definition formats; a blob’s content and runtime are described there.

The loop

  1. Develop in the repository.
  2. blobhub app push --install reports-dev builds, uploads what changed to the app blob’s draft, and installs the draft over a development installation in the same organization. A second run sends only what changed. It confirms by itself over a new or development installation whose plan deletes no blob; a plan that deletes one, or a committed installation that is uninstalled, waits for --yes. A ready or failed installation of committed versions never takes the draft, --yes or not (--install).
  3. Edit visually where it helps. A development installation’s blobs are editable, so the workflow editor and the playground work on them as on any blob.
  4. blobhub app pull reports-dev copies those edits back into blobs/<alias>/definitions/.
  5. blobhub app commit -m "Weekly digest" makes the draft the version in app.version.

build/ is the app blob

build/ has the sources’ paths, with two differences: code and widgets are compiled into the definitions, so src/ and widget projects are not copied, and each manifest loses its build keys. The app blob holds build/ file for file, except README.md and LICENSE, which become the draft’s Readme and License. It is a pure function of the sources, so the same sources give the same bytes and a second push uploads nothing. Git ignores build/; it is disposable, and build warns with BUILD_NOT_IGNORED when it is not ignored.

The first push creates the app blob

The first push creates the app blob named by app.alias, in the organization --org names, private, and waits until it is ready. An alias held by a blob this key cannot read is BLOB_NOT_ACCESSIBLE, and one held by a blob of another type is BLOB_TYPE_MISMATCH. A push whose blob’s default revision is already committed creates a new draft revision first. Nothing else is created: the blobs the app makes are made by an installation, never by a push.

The commands

The CLI never waits on input. A command that would ask a question prints what it found and refuses, and --yes is how a confirmation is given; the installation commands are in the installer group.

See also