> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blobhub.io/llms.txt
> Use this file to discover all available pages before exploring further.

# blobhub app pull

> Copy workflow graph and playground edits of an installation back into the repository

`pull` is for edits made in the visual editor. A development installation's blobs are editable; `pull` reads the
definitions it holds and writes the ones that differ into the repository, so the sources keep what you drew.

## Synopsis

```bash theme={null}
blobhub app pull <alias> [-f <path>] [--installer <org/blob>]
```

| Flag | Default | Description |
| - | - | - |
| `-f`, `--file` | `app.yaml` | The app's `app.yaml`; the definitions are written under its folder. |
| `--installer` | `installed-apps` in the app's organization | The installer blob that holds the installation, as `<org>/<blob>`. |

`<alias>` is the installation, `reports-dev` in the Field Reports example.

## What it does

1. Reads the installation and the blobs it made.
2. For each workflow folder of the repository that the installation holds, lists the blob's definitions and downloads
   the `workflow` and `playground` definitions the folder's `blob.yaml` names.
3. Keeps each local code component's code port exactly as it is in the sources, since `src/` is the source of code.
4. Writes a definition file only when its document differs, after checking every document it will write, so a value
   JSON cannot carry leaves nothing written.

```text theme={null}
updated blobs/flows/definitions/compile.json
updated blobs/flows/definitions/desk.json
2 definitions updated; manifests are never pulled
```

With `--json`, the result is `installer`, `installation`, `development` (whether the installation is one), the
definitions `updated`, `unchanged` and `skipped`, each with its `blob`, `category`, `alias` and `file` (a skipped one
with its `reason`), and `remote_edits`, the components whose code was edited outside the CLI.

Widgets, listeners and manifests are never pulled: a manifest is written by hand, and a widget is built from its
project. A component whose code was edited in the visual editor draws the advisory `REMOTE_EDIT`, because the edit is
not copied; move it into `src/`, or the next `push --install` replaces it.

## Errors

| Code | When |
| - | - |
| `MANIFEST_NOT_FOUND`, `MANIFEST_INVALID` | `app.yaml` or a `blob.yaml` is absent or unusable. |
| `FORMAT_UNSUPPORTED`, `FORMAT_PARSE_ERROR` | `app.yaml` has an unsupported extension or does not parse, a `blob.yaml` does not parse, or a definition's `file` has an unsupported extension or, when it exists, does not parse. |
| `VALUE_NOT_JSON` | A definition `pull` would write holds a value JSON cannot carry, refused before any file is written, so nothing is written; or `app.yaml`, a `blob.yaml` or a local definition is a YAML document that holds itself, refused as it is read. The message names the file, then the value's path, such as `<file>: <path>: holds itself`. |
| `BLOB_REFERENCE_INVALID` | No organization for the installer: pass `--org` or set `BLOBHUB_ORG`. |
| `INSTALLATION_NOT_FOUND` | The installer holds no installation with this alias. |
| `BLOB_NOT_ACCESSIBLE` | The installer blob is absent, or it or an installed blob is not readable with this key. `pull` never creates the installer. |
| `BLOB_TYPE_MISMATCH` | `--installer` names a blob that is not an installer. |
| `BLOB_NOT_READY` | The installer blob is not `ready`; one being deleted or failed is refused with the platform's `blob <org>/<blob> is <status>`, with no hint. |
| `REMOTE_EDIT` | Advisory: a code component was edited in the visual editor; the source is unchanged. |
| `CREDENTIALS_NOT_FOUND`, `PROFILE_NOT_FOUND`, `INSECURE_CREDENTIALS_PERMISSIONS` | No usable credential, a credentials file the CLI refuses to read, or an API URL or key no request can carry ([Error codes](https://docs.blobhub.io/cli/error-codes.md#credentials-and-authentication)). |
| `API_RATE_LIMITED`, `API_TRANSIENT_ERROR`, `API_NETWORK_ERROR` | A call failed after its retries. |

Every code above, with its remediation, is in [Error codes](https://docs.blobhub.io/cli/error-codes.md).

## See also

* [`blobhub app push`](https://docs.blobhub.io/cli/app/commands/push#--install) — installs the draft that `pull` takes edits from.
* [Development installations](https://docs.blobhub.io/blob-types/installer/overview.md#development-installations) — why their blobs are
  editable.
* [App overview](https://docs.blobhub.io/cli/app/overview.md) — the developer's loop.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.