> For the complete documentation index, see [llms.txt](https://docs.eyepop.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eyepop.ai/cli/persistent-sessions.md). Agents can also search and read this documentation through its [MCP server](https://docs.eyepop.ai/~gitbook/mcp).

# Persistent Deployments

Keep a model warm behind a stable session UUID

A deployment is a session that stays available between runs. It has a stable session UUID and endpoint.

### Create

Choose one model or Pop:

```bash
eyepop create deployment --model eyepop.person:latest
eyepop create deployment --pop ./pop.json
```

`--model` accepts a model alias or UUID. `--pop` accepts the same forms everywhere: a Pop from `eyepop get pops`, a JSON or YAML file, or an inline body. `--ability` takes an ability such as `eyepop.person:latest`, by alias or UUID, and the deployment runs it as a one-component Pop. Name one of `--model`, `--pop`, and `--ability`. Add `--dashboard` to enable the deployment dashboard and open it in your default browser once the deployment is healthy.

The command waits for `pipeline_ok`, then prints the session UUID to stdout:

```bash
UUID=$(eyepop create deployment --model eyepop.person:latest)
```

### Inspect and run

```bash
eyepop get deployments
eyepop get deployments <session-uuid>
eyepop run --session <session-uuid> --media-path image.jpg
```

`run --session` and `delete deployment` also accept a display name or a UUID prefix of at least 7 characters when it identifies one session. `get deployments` and `patch deployment` need the full session UUID. With a full UUID, `run --session`, `get deployments`, and `patch deployment` reach a deployment in any account you belong to, including one a colleague created, and do not take `--account`. A name or prefix, and any `delete deployment` target, is looked up among your own deployments, or among an account's with `--account`.

`get deployments` lists the deployments you created. Name an account to list every deployment in it, whoever created them — your own account, or any account you belong to:

```bash
eyepop get deployments --account <account-uuid>
```

### Update

Patch the deployment in place. Its UUID and endpoint stay the same, but requests may fail while the pipeline restarts.

```bash
eyepop patch deployment <session-uuid> --model eyepop.person:latest
eyepop patch deployment <session-uuid> --pop ./pop-v2.json
```

The command waits for the deployment to become ready. Add `--no-wait` to return after the update is accepted.

### Delete

```bash
eyepop delete deployment <session-uuid>
eyepop delete deployment <session-uuid> --yes
```

On a terminal the CLI asks before deleting; `--yes` skips the question. Scripts, CI jobs, and agents must pass `--yes`: without a terminal there is nobody to answer, so the delete fails with a non-zero exit and the deployment keeps running. Answering no at the prompt also exits non-zero.

Delete deployments when they are no longer needed. SDK clients attach with the session UUID; see the [Python SDK](https://github.com/eyepop-ai/eyepop-sdk-python) or [Node SDK](https://github.com/eyepop-ai/eyepop-sdk-node).

### Next steps

* [Run Inference & Evaluations](https://docs.eyepop.ai/cli/run.md) — run against a session you created
* [Resources](https://docs.eyepop.ai/cli/resources.md) — list and delete deployments
* [Command Reference](https://docs.eyepop.ai/cli/reference.md) — every `create deployment` and `patch deployment` flag


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.eyepop.ai/cli/persistent-sessions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
