> 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.md). Agents can also search and read this documentation through its [MCP server](https://docs.eyepop.ai/~gitbook/mcp).

# CLI

A terminal-first way to run inference, evaluate datasets, and manage resources

The EyePop CLI (`eyepop`) is a single binary for calling EyePop from your terminal or scripts — authenticate, run inference, evaluate datasets, and manage datasets, abilities, deployments, and sessions without writing code.

{% hint style="warning" %}
**The CLI is in beta.** Commands, flags, and output shape can change between releases. Pin a version in anything automated, and check the [Command Reference](https://docs.eyepop.ai/cli/reference.md) after upgrading.
{% endhint %}

### Install

`eyepop` is a single binary. Pick your platform.

**macOS** — Apple Silicon and Intel

```bash
brew tap eyepop-ai/eyepop
brew trust eyepop-ai/eyepop
brew install eyepop
```

`brew trust` lets Homebrew load formulae from the EyePop tap before installing.

**Linux** — ARM64 and AMD64

```bash
curl -fsSL https://raw.githubusercontent.com/eyepop-ai/homebrew-eyepop/main/install.sh | sh
```

The script downloads the release binary, verifies its SHA-256, and installs it to `~/.local/bin` — or over an existing non-Homebrew `eyepop` already on your `PATH`, so re-running it updates in place. It lives in the public tap, so you can [read it first](https://github.com/eyepop-ai/homebrew-eyepop/blob/main/install.sh). Set `EYEPOP_INSTALL_DIR` to install elsewhere, or `EYEPOP_VERSION` to pin a release tag.

If it warns that the install directory is not on your `PATH`, add it:

```bash
export PATH="$HOME/.local/bin:$PATH"
```

Homebrew works on Linux too, with the same three commands as macOS. The install script also runs on macOS.

**Windows** — through WSL2 with Ubuntu

On Windows, run the CLI inside an Ubuntu distribution under WSL2. In PowerShell, as administrator:

```powershell
wsl --install -d Ubuntu
```

Restart if Windows asks you to, open **Ubuntu** from the Start menu, and create your Linux user when prompted. If WSL was already installed, check that Ubuntu runs under WSL 2 with `wsl -l -v`, and convert it with `wsl --set-version Ubuntu 2` if it shows version 1.

Then follow the **Linux** instructions above inside the Ubuntu shell. Every `eyepop` command from then on runs there too.

**Any platform, by hand**

Every release publishes one archive per platform. Pick your target and let the tag resolve to the newest release:

```bash
TARGET=x86_64-unknown-linux-gnu
VERSION=$(curl -fsSL https://api.github.com/repos/eyepop-ai/homebrew-eyepop/releases/latest \
  | sed -n 's/.*"tag_name": *"\([^"]*\)".*/\1/p')

curl -fsSL -o eyepop.tar.gz \
  "https://github.com/eyepop-ai/homebrew-eyepop/releases/download/$VERSION/eyepop-$VERSION-$TARGET.tar.gz"
tar -xzf eyepop.tar.gz
mkdir -p ~/.local/bin
install -m 0755 eyepop ~/.local/bin/eyepop
```

Targets: `x86_64-unknown-linux-gnu`, `aarch64-unknown-linux-gnu`, `x86_64-apple-darwin`, `aarch64-apple-darwin`.

Verify the install:

```bash
eyepop --version
```

### Run your first inference

```bash
eyepop auth login
eyepop run --model eyepop.person:latest --media-path image.jpg
```

Results print as they arrive, styled by default. Add `--json` (or `--format json`) for machine-readable output: one `{file, response}` object per line (JSON Lines) — plus `request_id` when the run has one. An image yields one line; a video yields one per frame, printed while the rest of the video is still processing. A source still processing prints a pending record with a `poll_url`. Failures and a closing summary go to stderr, so stdout stays a stream of results, and a run where every source failed exits nonzero.

### What you can do

| Goal                             | Command                                                |
| -------------------------------- | ------------------------------------------------------ |
| Sign in                          | `eyepop auth login`                                    |
| List your accounts               | `eyepop get accounts`                                  |
| List datasets                    | `eyepop get datasets`                                  |
| List runnable models             | `eyepop get models`                                    |
| Run a model on media             | `eyepop run --model <model> --media-path <media>`      |
| Evaluate an ability on a dataset | `eyepop evaluate --ability <ability> --dataset <name>` |
| Check evaluation status          | `eyepop get evals <request_id>`                        |
| Run on your own hardware         | `eyepop instance init --ability <ability>`             |

### Next steps

* [Getting Started](https://docs.eyepop.ai/cli/getting-started.md) — install, authenticate, and configure output
* [Concepts](https://docs.eyepop.ai/cli/concepts.md) — models, Pops, deployments, instances, and datasets
* [Run Inference & Evaluations](https://docs.eyepop.ai/cli/run.md) — the core `run` workflow
* [Persistent Deployments](https://docs.eyepop.ai/cli/persistent-sessions.md) — keep a target warm behind a stable UUID
* [On-Premise Instances](https://docs.eyepop.ai/cli/on-premise.md) — run on hardware you control
* [Datasets & Evaluation](https://docs.eyepop.ai/cli/evaluation.md) — build a dataset and score against ground truth
* [Resources](https://docs.eyepop.ai/cli/resources.md) — manage datasets, abilities, deployments, and sessions
* [Command Reference](https://docs.eyepop.ai/cli/reference.md) — every command and 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.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.
