Skip to main content
blob create makes a blob of the type you name and returns once it is ready, so the next command has something to write to. It is the only command in the blob group that writes, and the one to run before workflow push, which never creates a blob.

Synopsis

--org, --profile and --json are global, so they go before the subcommand:
The command has no --dry-run, no description and no --public.

What it does

  1. Parses the reference. A bare name takes the org from --org or BLOBHUB_ORG. The name is checked before anything is sent: it must match ^[a-z0-9_-]{6,42}$ and must not be UUID-shaped.
  2. Posts the create. It never reads first, so it never reuses a blob: a name the organization already holds is BLOB_ALIAS_IN_USE, readable or not. The platform checks the key’s access, then the type, then the quota, and the name last, so ORG_NOT_WRITABLE, BLOB_TYPE_UNAVAILABLE or LIMIT_EXCEEDED comes first when one applies.
  3. Reads the blob back by id each second, for up to 120 s, until it is ready.
  4. Prints the result.
The --type value goes to the platform verbatim. The platform decides which types exist and which an organization may create.

Always private

A blob made here is private, and the command has no way to change that. Publishing is a person’s change on the organization’s perimeter; see the access perimeter.

Output

Under --json the payload carries blob (the <org>/<name> label), blob_id, revision_id, record (the blob record) and the envelope’s schema_version.

Errors

Like every write, the create is retried only when the failure proves it never ran: an HTTP 429, or a connection that was never made. blob create never reuses a blob it finds, so it is the one write command besides workflow execute that does not converge when rerun: when its answer is lost after the platform created the blob, a rerun is refused BLOB_ALIAS_IN_USE, and blobhub blob show <org>/<name> tells whether it was made.

See also