---
sidebar_label: "CLI"
title: "CLI reference"
description: "Connect to a project, submit Jobs, follow results and reuse Profiles with el / envloop."
last_update:
  date: 2026-11-19
---

<span id="cli-reference" className="legacy-anchor" />

Use `el` to submit work, follow progress and manage your project's resources. `envloop` is the full spelling of the same command. A Job is a submitted unit of work; a Trial is an individual execution within that Job.

Every installation includes all client feature code; extras select dependencies only. ANS operations require the public dependency installed by `envloop-cli[asset]`. See [installation groups](../cli-install.md#asset-extra). Command paths and public API authorization remain unchanged.

## Before you start

Check that `el job submit --help` lists `--spec` before using the request-file examples. Update the client in the active Python environment if that option is missing.

`job submit --spec REQUEST.json` reads an Agent, Sandbox, Train or Inference Job specification. Explicit CLI options override corresponding file fields; omitted options preserve the file. `--request-id` has higher priority than the JSON value. Train Runner overrides apply to every Trial and merge specified resource keys. `--trials` cannot override the file Trial list and is mutually exclusive with `--spec`. The former `job submit --file` option is removed; the JSON payload is unchanged. Other commands retain their `--file` options.

Follow [Installation](../cli-install.md) to install the public `envloop-cli` package with Python 3.12 or later, then [authenticate](../guides/authentication.md) with a project API Key. Use `el --version` to check your client and `el help COMMAND` for command help, for example `el help job submit`.

Keep the client up to date and use command help to check available options. Model Loop controls require the service to be enabled for your project; see [Model Loops](../guides/rsi-loops.md). Profile files can use JSON or TOML, and the public client includes `profile fork`. Before submitting GPU Runner work, check the [client and project requirements](../training/runner.md#availability).

### Client versions {#client-versions}

Use `el --version` and the installed command's `--help` to check availability. Source checkouts may contain changes that are not in the published wheel with the same package version.

| Client release | Runner and upload options |
| --- | --- |
| 1.32.0 | `runner list\|register`; artifact downloads use positional `DIRECTORY` |
| 1.33.0 | `runner list\|get\|create\|update\|delete`; single-resource Runner commands already output JSON, but do not accept explicit `--json` |
| 1.34.0 and later | Explicit `--json` for Runner get/create/update/delete, Harbor upload `--update-digests`, and artifact download `--output` |

Install or upgrade from PyPI using [Installation](../cli-install.md). If the required release is not available yet, upgrading still installs an earlier wheel; consult the [release history](https://pypi.org/project/envloop-cli/#history) and follow the options listed by your installed help.

Client and platform versions are separate requirements:

| Feature | Client requirement | Platform 1.71.0 |
| --- | --- | --- |
| Digest updates, explicit Runner `--json`, artifact `--output` | 1.34.0 or later | Uses the existing APIs; no platform upgrade is required for these client fixes |
| Publish v6 Runner packages | 1.33.0 or later, with the `data` extra | Publication is supported; successful publication does not prove the Runner can execute |
| Create, update or submit Profile v4 | 1.33.0 or later | Not supported; requires a platform release with Profile v4 support |
| Execute a v6 Runner in a Sandbox | A published Runner reference | Requires a platform release with v6 Runner bootstrap support |

Publishing or installing a CLI release does not update the service. Confirm the platform's capabilities with its administrator before using Profile v4 or v6 Runner Sandbox execution. Historical Profile versions retain their content and remain usable; they are not silently converted to v4.

Bench and Sandbox accept `--provider NAME` on `el job submit`. The platform validates it against the enabled providers for that Job type, then freezes that single route. For example, `el job submit --type bench --provider e2b --spec REQUEST.json` selects E2B while the platform may enable both local and E2B. Train and Inference use platform selection.

## Connect to your project {#authentication-commands}

Choose your project during `el auth login`, then check the saved connection and read a first page of Jobs:

```bash
el auth login
el auth config show --json
el auth status --check
el job list --limit 10
```

`auth config show` displays the effective address and configuration sources, with Keys hidden. If you already have a Key, use `el auth config` to enter, verify and save it. To change the API address, save `base-url` before entering its Key. [Configuration](configuration.md) explains how saved values and environment settings interact.

| Command | Use |
|---|---|
| `auth login [--base-url URL] [--no-browser] [--timeout-seconds SECONDS] [--read-only]` | Authorize in the browser; timeout 1–600 seconds, default 300. The Key follows your project role; `--read-only` issues a read-only Key |
| `auth config` / `auth config init` | Enter a Key with masked input, verify it and save it; `--no-check` saves offline |
| `auth config set FIELD [VALUE]` | Save a field; enter Keys with masked input or `--stdin` |
| `auth config get FIELD` | Read a saved field; Keys show configured/missing |
| `auth config show [--json]` / `auth config path` | Inspect effective settings or locate the configuration file |
| `auth config unset FIELD` | Remove a local setting |
| `auth config project [PROJECT_ID] [--stdin]` | Switch projects using that project's Key |
| `auth workspace [WORKSPACE_ID] [--project-id ID] [--stdin]` | Switch workspace/project scope using the corresponding Key |
| `auth status [--check] [--json]` | Inspect local configuration; add `--check` for connection checks and inspect warnings; use `job list` to verify Job access |
| `auth logout` | Remove locally saved Keys for the address; server Keys remain valid until revoked |

Prefix each command with `el`. FIELD is `base-url`, `api-key`, `workspace-id` or `project-id`. SDK and TOML configuration use the field name `api_url`.

## Submit and follow Jobs {#experiment}

<span id="task-commands" className="legacy-anchor" />
<span id="command-recipes-and-request-files" className="legacy-anchor" />

Choose a Dataset, a versioned collection of tasks, and a Task within it. Replace the uppercase placeholders with values from your project:

```bash
el dataset list --limit 10
el dataset list --name DATASET_NAME --limit 10
el dataset task list DATASET_NAME@REVISION --split SPLIT --limit 10
el job submit --dataset DATASET_NAME@VERSION --task-id TASK_ID
```

Submission returns a Job receipt. Copy its Job ID, then read its progress and results:

```bash
el job get JOB_ID
el job log JOB_ID --follow
el job result JOB_ID
```

Press Ctrl-C to leave log following while the Job continues. Use `el job stop JOB_ID` when you want to stop the Job. Read the final status and result after it finishes; for evaluations, inspect the returned scores as well. [Jobs](../guides/jobs.md) walks through the workflow.

Choose `--type` for other work. For GPU Runner training, use the [request-file workflow](../training/runner.md#use-a-request-file-or-sdk) or check `el job submit --help` before using shortcut options:

| Work | Submit | Continue |
|---|---|---|
| Agent evaluation (default) | `job submit --dataset NAME[@VERSION]` or `--source DIRECTORY` | `job get/result/stop JOB_ID` |
| Sandbox script | `job submit --type sandbox --runner base [--image python:3.11] [--command SCRIPT] [--cpus N] [-m SIZE]` | Read captured output with `job log JOB_ID` |
| GPU Runner training | `job submit --type train --runner NAME@REVISION [--trials N] [--gpu-type TYPE] [--gpus N]` | Use a published Runner readable by your project; check [available options](../training/runner.md#availability) |
| Recipe training | `job submit --type train --spec REQUEST.json [--max-cost-usd USD] [--wait] [--timeout-seconds 600]` | Read training details/results with `job get/result JOB_ID` |
| Inference | `job submit --type inference --spec REQUEST.json` | Inspect `job get`, `job event`; use `job pause/resume/wake/stop JOB_ID` as needed |

A Runner defines how work executes. Bench Jobs use the Dataset's Runner unless you supply `--runner NAME@REVISION`; Sandbox Jobs use a registered Runner such as `base` without a Dataset. Use `el runner list --json` to find published revisions. The platform resolves and freezes your selection when accepting the Job. The platform selects the execution environment.

Train and Inference request files are UTF-8 JSON. Use the payloads in [Training](../training/overview.md), [Inference](../guides/inference.md) and the [HTTP API](http-api.md). Keep Agent input options with Agent requests. These actions can allocate resources; inspect lifecycle and cleanup separately.

### Job submit options

<span id="task-submit-options" className="legacy-anchor" />

| Option | Meaning |
|---|---|
| `--type bench\|sandbox\|train\|inference` | Default to the file type, otherwise `bench`; Inference requires `--spec`; Train accepts a recipe file or the new Runner mode |
| `--spec REQUEST.json` | All Job types; explicit applicable options override file values; `--trials` remains mutually exclusive |
| `--trials N` / `--docker IMAGE` | Train Runner: independent Trial count and image; see [GPU Runner training](../training/runner.md) |
| `--cpus N` / `-m SIZE` (`--memory`) / `--storage SIZE` / `--gpus N` | All Job types: per-Trial resources that override the Runner and Profile for this Job; sizes are written as in Docker with a `k`, `m`, `g` or `t` unit (for example `2g`, `2G` or `2GB`, 1024-based); unspecified keys keep the declared value |
| `--gpu-type TYPE` / `--shm-size SIZE` | Train and Inference: GPU model and shared memory per Trial; Agent and Sandbox Jobs refuse them with `JOB_RESOURCES_UNSUPPORTED` |
| `--source PATH` | Local two-file task directory, as an alternative to a Dataset |
| `--dataset NAME[@VERSION]` | Dataset name with an optional author version |
| `--task-id ID` | Select one Task; omit to run the selected Dataset members |
| `--runner NAME@REVISION` | Select a published Runner for Train or override the Agent Dataset Runner with a registered commit, tag or branch; Sandbox also accepts a registered short name |
| `--image IMAGE` | Sandbox image (default `python:3.11`); also accepted for Train Runner, mutually exclusive with `--docker` |
| `--job-id ID` / `--tag TEXT` | Supply a Job ID or a run label |
| `--priority INT` | Default 0; higher values dispatch waiting tasks sooner, without interrupting running tasks |
| `--config NAME` / `--split NAME` | Select a Dataset subset and split; omission uses the declared subset default and all its splits. With a named Profile, they select the config and split of the only Dataset `--input` |
| `--revision REF` | Git branch/tag/commit matching the Dataset snapshot registered by the platform |
| `--attempts INT` | Attempts per selected member; default 1 |
| `--request-id ID` | Reuse for a retry of the same submission; the first accepted selection is retained |
| `--profile NAME[@VERSION]` | Reuse a Profile; an omitted version selects the explicit default, or the newest unarchived version when no default is set |
| `--input NAME=URI` | Named Profile without `--spec`: bind a declared input slot to an `envloop://` reference; repeatable. A Dataset URI alone uses the default config and the `train` split |
| `--input-config NAME=CONFIG` / `--input-split NAME=SPLIT` | Config and split for the Dataset bound by `--input NAME=...` in the same command; once per slot, for example `--input train_dataset=envloop://datasets/team/data@1 --input-split train_dataset=train-1` |
| `--seed INT` | Override the seed |
| `--timeout-seconds SECONDS` | Agent/Sandbox execution deadline in whole seconds; Train recipe `--wait` timeout defaults to 600; Runner mode, including Runner specs, uses a positive per-Trial execution deadline |
| `--command SCRIPT` | Agent/Sandbox script override; Train Runner declared run_command parameter preserving the published entrypoint. Nonempty, no NUL, at most 65536 UTF-8 bytes |
| `--delete-delay-seconds SECONDS` | Retain the completed execution sandbox for a nonnegative duration, default 0; cancellation/timeout deletes it immediately |
| `--wait` | Wait for the Job to reach a terminal state |

Uploaded artifacts remain downloadable after the execution sandbox is deleted; undeclared or uncollected files are lost with it. Use `--delete-delay-seconds` only when you need the sandbox retained, and inspect the Trial’s cleanup status when it ends. [Sandbox Jobs](../guides/jobs.md#run-a-sandbox-job) explains execution and cleanup.

`job submit` always prints the complete JSON response. Client 1.7.0 also accepts `--json` on this command; scripts can parse the same response with or without it.

### Read logs, Trials and training runs

`job log JOB_ID [--source all|system|runtime] [--tail 200 | --cursor CURSOR] [--limit 200] [--follow] [--json]` reads Agent, Sandbox and Train output. `--json` keeps the complete response; combined with `--follow`, it emits one JSON page per line (NDJSON). Use a returned cursor to continue reading. [Train Job logs](../training/monitoring.md#read-train-job-logs) describes availability and retention.

`job metrics JOB_ID [--follow] [--json]` reads a Train Job's per-step metrics: step, loss, learning rate, gradient norm, epoch, tokens seen and step time. `--follow` prints new steps until the Job ends; with `--json` it prints one JSON object per step. See [Per-step metrics](../training/monitoring.md#step-metrics).

| Command | Use |
|---|---|
| `job list [--type bench\|sandbox\|train\|inference] [--status STATUS] [--limit 25] [--cursor CURSOR] [--json]` | Find Jobs and filter by type/status |
| `trial list [--type bench\|sandbox\|train\|inference] [--job-id JOB_ID] [--limit 25] [--cursor CURSOR] [--json]` | Find a Job's Trials |
| `trial get/result/snapshot/stop TRIAL_ID` | Inspect or stop an existing Trial |
| `trial artifact list TRIAL_ID [--limit 25] [--cursor CURSOR] [--json]` | List its uploaded files |
| `trial artifact get ASSET_ID --output FILE` | Download a collected Artifact directly with temporary object credentials and size/SHA-256 checks; use `trial artifact list --trial-id TRIAL_ID` to find its ID |

The Trial command is spelled `trial`. Submit work through `job submit`; use `trial` to inspect the resulting executions. A failed or incomplete artifact download exits 1 and removes damaged temporary files. For current Model Loop activity, use the controls below.

### Start and follow a Model Loop {#loop}

A Model Loop is one improvement process toward a goal, made of numbered iterations. Each Loop has a Loop ID such as `loop_77b8e7a1c2d34e5f9a0b1c2d3e4f5a6b`. Use a project Key with `training.run` to start or guide one, and `training.stop` as well to stop it. The connected platform must have Model Loops enabled; if it returns `RSI_CONTROL_UNCONFIGURED`, ask your project administrator to enable the service.

This example requests one iteration with a model budget of USD 5 and skips GPU training. **`--dry-run` still spends model budget.** Use a new name containing lowercase letters, digits and dashes; the command prints the new Loop ID:

```bash
el loop start arithmetic-demo \
  --brief "Improve answers to simple arithmetic questions." \
  --max-model-cost-usd 5 --iterations 1 --dry-run
el loop live loop_77b8e7a1c2d34e5f9a0b1c2d3e4f5a6b --follow
```

Follow prints new events until the loop ends. Press Ctrl-C to return to your shell; the loop keeps running. While it is active, you can send guidance or request a stop from another terminal:

```bash
el loop steer loop_77b8e7a1c2d34e5f9a0b1c2d3e4f5a6b "Focus on addition and subtraction."
el loop stop loop_77b8e7a1c2d34e5f9a0b1c2d3e4f5a6b
el loop get loop_77b8e7a1c2d34e5f9a0b1c2d3e4f5a6b
```

`stop` requests a stop after the current iteration. `get` shows the loop's state, its iterations and the Train Jobs it launched. Console **Model Loops** also provides a read-only view.

| Command or option | Use |
|---|---|
| `loop list [--json]` | List visible loops with their Loop IDs |
| `loop get LOOP_ID [--json]` | Show a loop's state, iterations and Train Jobs grouped by iteration |
| `loop iteration get LOOP_ID ITERATION [--json]` | Show one iteration's decision, summary and audits; iterations start at 1 |
| `loop start NAME (--brief TEXT \| --brief-file PATH) --max-model-cost-usd USD` | Start with a goal of up to 4000 characters and a required model budget; `--brief-file -` reads standard input |
| `--max-cost-usd USD` / `--max-model-requests INT` | Limit combined model/GPU spend or the number of model requests |
| `--domain NAME` / `--iterations INT` | Choose a task family or target iterations; omission uses service defaults |
| `--dry-run [--student-model MODEL]` | Exercise the loop using model calls without GPU training |
| `loop live LOOP_ID [--since CURSOR] [--follow] [--json]` | Read progress; use the returned `next_cursor` as `--since` to continue |
| `loop steer LOOP_ID TEXT` | Send guidance of 1–4000 characters |
| `loop stop LOOP_ID` | Stop the loop after its current iteration; use `job stop JOB_ID` to stop a specific Job |

See [Model Loops](../guides/rsi-loops.md) for progress fields and access settings.

## Find Assets and reuse Profiles {#data}

Use exact versions consistently:

```bash
el dataset list --content-type environment --limit 10 --json
el dataset get example/tasks@1 --json
el profile list --job-type bench --json
el profile get team/eval@1 --json
el profile update team/eval@1 --version 2 --patch changes.json --json
el profile set-default team/eval@2 --expected-version 1 --json
el profile export team/eval@2 --output profile.json
```

Default selection is explicit and separate from version reads. Updates never modify existing content or silently advance the default. Profile reads and exports redact Secrets; use `--secret NAME=env:VARIABLE` or another supported Secret source to supply a declared write-only value.

### Fork a Profile {#fork-a-profile-preview}

`el profile fork SOURCE@VERSION@--name --name team/copy --version --version 1` creates a separate immutable identity from a currently authorized source. Public changes require a platform administrator. See [Profiles](../guides/profiles.md).

### Download checkpoints

`el checkpoint download REF --output DIRECTORY` uses the selected Checkpoint's verified content. External metadata registrations have no downloadable weights. See [Checkpoints](../training/checkpoints.md).


## Manage project resources {#manage-and-overview}

<span id="management-commands-and-authorization" className="legacy-anchor" />

Use the Console Dashboard for the project overview. Browse Jobs with `el job list --type bench` or `el job list --type train`.

Membership, limits and project settings require an authorized human session. CLI login saves an API Key and does not grant management-session access.

| Command | Use |
|---|---|
| `limit get` | Read limit status; the current response is `not_configured` with an empty `limits` list |
| `member list` / `member candidate list --query QUERY` | Discover project members |
| `member add/update/remove USER_ID --expected-version N` | Change membership; new grants use 0; add/update supports `--role viewer\|developer\|admin` (default developer) |
| `setting get` / `setting update [--name NAME] [--slug SLUG] [--region REGION] --expected-version N` / `setting archive --expected-version N` | Read or change project settings |

If an update returns `VERSION_CONFLICT`, read the current version and review the changes before retrying. An `ACCESS_DENIED` response calls for checking the Key's project and permissions, or using Console for a human-session action.

### Stop, delete and clean up resources

Current Inference Jobs take declared Checkpoint inputs; adapter commands only inspect and clean up historical records. A cleanup Operation is a saved record of a cleanup request. Save the resource ID before starting cleanup. Deleting a checkpoint can remove saved training files; download what you need first. References and permissions can block deletion. For inference, stop the Job and inspect its state; adapters and checkpoints have their own deletion commands. See [Inference lifecycle](../guides/inference.md#stop-and-release).

| Command | Use |
|---|---|
| `job adapter list [--json]` / `job adapter get ADAPTER_ID` | Find adapters or inspect one |
| `job adapter delete ID [--wait] [--timeout-seconds 600]` | Delete an adapter and optionally wait for cleanup |
| `checkpoint delete ID [--wait] [--timeout-seconds 600]` | Delete a checkpoint resource |
| `setting operation get/retry/wait OPERATION_ID` | Read or retry cleanup; wait accepts `--timeout-seconds 600` |
| `setting cleanup --file RESOURCES.json --request-id REQUEST_ID [--wait] [--timeout-seconds 600]` | Clean an explicit JSON array of `{"kind", "id"}` objects. `kind` is `job` (a Train Job), `endpoint`, `adapter` or `checkpoint` |
| `setting resource-scope create --request-id REQUEST_ID [--ttl-seconds 1800]` | Create a temporary resource group with server expiry; allowed TTL is 60–86400 seconds |
| `setting resource-scope get SCOPE_ID` | Inspect the group |
| `setting resource-scope retain SCOPE_ID --file RESOURCES.json` | Keep listed resources out of this group's cleanup |
| `setting resource-scope cleanup SCOPE_ID [--wait] [--timeout-seconds 600]` | Request group cleanup |

Read the returned Operation ID with `setting operation get`, or use `--wait` to follow cleanup. If it fails or times out, keep that ID and inspect it before using `operation retry`; resubmitting work creates a separate request.

## Read output and continue {#output-and-exit-codes}

Collection commands usually show tables; `--json` returns the complete response. For paginated lists, use `--limit` and `--cursor`; defaults are 25 items, or 50 for Profiles. Copy the next-page command from the table to continue. Commands such as `loop list` return their full API list and have no paging options.

Use `--json` when comparing exact times: it keeps the original timezone offset and fractional seconds. Readable tables, including the `el job metrics` OBSERVED AT column, and the `Training progress` line show UTC to the second with a `UTC` label, for example `2026-11-03 03:15:25 UTC`, on every machine. Text logs keep the record's timezone and show `YYYY-MM-DD HH:MM:SS level message`; a line with `backfilled: true` shows `(backfilled)` after its time, because its time is when it was collected after the Job ended. Older clients showed table times in the local timezone without a label. These clients highlight interactive output; disable it with `--no-color` at any command level, `NO_COLOR=1` or `TERM=dumb`. Pipes, redirected output and JSON have no highlighting. For examples and clients without this option, see [CLI workflows](../guides/cli.md#readable-logs-and-plain-text).

| Exit code | Meaning and next step |
|---|---|
| 0 | Success or help displayed; continue with the returned resource ID |
| 1 | Configuration, authentication, API, execution, waiting or download failure; read the error and inspect the existing resource/operation before retrying. `job get`, `job result` and `trial get` also exit 1 when the Job or Trial they read is `failed`: stdout still has the complete JSON and stderr has one `Trial … failed: CODE` line per failed Trial. `job submit --wait` exits 1 for a `cancelled` Job too. |
| 2 | Argument error; use the command help shown with the error |

A polling script under `set -e` stops at exit code 1 when the Job fails; read `status` from the JSON (for example `el job get JOB_ID || true`) to tell a failed Job from a failed read. For missing log records, see [Monitoring](../training/monitoring.md). For connection or permission errors, see [Troubleshooting](../guides/troubleshooting.md).

## Categories and command tree

Categories group help output: EXPERIMENT contains `job`, `trial` and `runner`; RSI-LOOPS contains `loop`. The CLI has no `dashboard` command. Use command names directly, for example `el job list`. Running `el`, a bare command group or `--help` shows help and exits 0. Use `-h/--help` and `-V/--version`; clients whose help lists `--no-color` also accept it at any command level. Connection settings live under `auth`.

```text
EXPERIMENT
  job list | submit | get | result | log | stop | pause | resume | wake | event
    adapter list | get | register | delete
  trial list | get | result | snapshot | stop
    artifact list | get | create | download
      file list
  runner list | get | create | update | delete | download | set-visibility
    file list
RSI-LOOPS
  loop list | get | start | live | steer | stop
    iteration get
ASSETS
  dataset list | get | create | update | delete | download | set-visibility
    file list
    upload get | part | complete | abort
    registration create | get
    task list | get
  checkpoint list | get | create | update | download | delete | set-visibility
    file list
    upload get | part | complete | abort
  recipe list | get | create | update | download | delete | set-visibility
    file list
    upload get | part | complete | abort
  profile list | get | create | update | delete | set-visibility | set-default | export
    fork
MANAGE
  limit get
  member list | candidate | add | update | remove
  setting get | update | archive
    registry list | add | remove
    compose get | enable | disable
    concurrency set
    model-access list | grant | revoke
    operation get | retry | wait
    cleanup
    resource-scope create | get | retain | cleanup
TOOLS
  auth login | config | status | logout | workspace
    config init | set | get | show | path | unset | project
  help [COMMAND ...]
```

## Inference files

`el job submit --type inference --spec REQUEST.json` and `envloop` share the same entrypoint. The file contains `request_id` and a current `envloop.job/v2` spec pinning `envloop/bash` and a Recipe. Supply Checkpoints through declared inputs and select resources independently. Call the returned model without `/base` or an adapter suffix. See the [complete request](../guides/inference.md#submit-a-job). Legacy profile submission, new adapter registration and historical reallocation return `INFERENCE_RECIPE_REQUIRED`.

### Job chat

```bash
el job chat JOB_ID "Hello"
el job chat JOB_ID
echo "Hello" | el job chat JOB_ID
el job chat JOB_ID "Hello" --json
el job chat JOB_ID --spec chat.json
```

Install `envloop-cli[chat]` first. The command reads the model from the specified READY Inference Job. Text answers stream by default; `--json` returns one complete response including usage and finish_reason. Without PROMPT, terminal stdin starts a conversation and piped stdin becomes one complete question.

| Option | Behavior |
| --- | --- |
| `--spec CHAT.json` | Chat request JSON with nonempty messages; mutually exclusive with PROMPT, piped stdin and --system |
| `--system TEXT` | System message |
| `--temperature FLOAT` / `--max-tokens INT` | Explicit values override the corresponding request-file fields |
| `--timeout-seconds SECONDS` | Per-request connection/read timeout; default 120 seconds |
| `--json` | Complete JSON for one question; unavailable in terminal conversation mode |

The spec accepts model extensions such as `chat_template_kwargs`; support depends on the Recipe. Omit model or use the exact Job model, and omit stream because output mode determines it. Each request asks for one completion. `/clear` resets history while keeping the system message; `/exit` or EOF exits, and Ctrl+C exits with 130. History stays in the current process; exiting does not stop the Job. Failed generations are not automatically retried. A failed stream exits nonzero even after printing partial text. Use `--json` for structured tool-call responses.

### Job decision

```bash
el job decision JOB_ID --model WORKSPACE/MODEL --spec PAYLOAD.json
```

Invoke the Job-bound decision plugin. The file is a JSON object without `model`, at most 1 MiB; `--model` is the exact model returned by the Job. `envloop` and `el` are equivalent and enforce the current project scope.

## Manage Assets {#asset-commands}

User Assets are Dataset, Checkpoint, Recipe and Profile versions. Use the singular typed commands below. Runner is a platform execution capability under **EXPERIMENT**; Trial Artifact belongs to its producing Trial. There is no generic Asset CLI command.

```bash
el dataset list --content-type record --query example --limit 25 --json
el dataset create --file ./manifest.json --directory ./files --wait --json
el dataset get 'envloop://datasets/example/records@1.0.0' --json
el dataset file list ASSET_ID --limit 25 --json
el dataset download ASSET_ID --file-id FILE_ID --output ./records.jsonl --resume --json
el dataset download 'envloop://datasets/example/records@1.0.0' --split train --output ./train --json
el dataset update ASSET_ID --file ./next.json --directory ./next-files --wait --json
el dataset delete ASSET_ID --dry-run --json
el dataset set-visibility ASSET_ID --visibility internal --expected-acl-revision ACL_REVISION
el checkpoint create --model namespace/model --revision FULL_COMMIT --json
el recipe create --directory . --revision FULL_COMMIT --wait --json
el profile create --name team/eval --version 1 --file ./profile.json --json
el profile update team/eval@1 --version 2 --patch ./changes.json --json
```

`list` returns one exact version per row. `get`, `update`, `delete`, file and download commands select a returned opaque `asset_id`, a full immutable ANS URI or an exact `name@version`. Bare names do not select a default version. Identical shared copies remain distinct owner copies: an ambiguous reference returns `ASSET_REFERENCE_AMBIGUOUS` with authorized candidate IDs. Choose an ID from the list; do not guess an owner. Keep filters and project scope unchanged when following `next_cursor`.

`get`, `create` and `update` return `{asset, operation}`. A ready asset has a stable `asset_id`; existing `data_…` ID values and ANS references stay unchanged. Publication handles (`pub_…`, `upload_…`, `cku_…`) identify operations, never Assets. Publication returns its operation by default; add `--wait --timeout SECONDS` to observe the same operation. A timeout does not cancel it. Resume with `dataset upload get OPERATION_ID`, `dataset upload part UPLOAD_ID --number N --file PART`, `dataset upload complete OPERATION_ID` or `dataset upload abort OPERATION_ID`. Abort is refused with `PUBLICATION_COMMIT_STARTED` after irreversible commit has started. A terminal failed/cancelled operation does not restart on retry.

Creates consume a complete type declaration with `--file`, plus its local content root with `--directory`; Recipe source uses a committed `recipe.toml` and `entrypoint.sh`. `--ref`, when supplied, must agree with the immutable declaration. Updates require a new immutable version. Use `--tags 'topic:example'` for optional version metadata; labels do not establish Job or Trial provenance. Dry-run checks admission and dependencies without publishing. Retirement preserves historical content and may be blocked by active or unknown dependencies.

Read/export/download requires the resource's read capability; writes and deletes require its matching write/delete capability. Recipes use `profiles.*`; Trial Artifacts use their existing Artifact permissions. There is no separate Assets permission. A Key cannot grant itself access: use `el auth login` with the appropriate project role, or configure **CONFIGURE → API Keys** for the corresponding **ASSETS** page. Public visibility may be set or removed only by a platform administrator. `acl_scope` tells whether visibility covers a name (including future versions), one saved Checkpoint or one Profile version; pass the current `acl_revision` for CAS. Metadata-only external Checkpoints without supported ACL report `ASSET_ACL_UNSUPPORTED`.

Inside an authorized Train worker, `el checkpoint create --result "$ENVLOOP_OUTPUT_DIR/train-result.json" --directory "$ENVLOOP_OUTPUT_DIR" --json` publishes verified saved files using the frozen Trial identity. Do not copy a personal Key into a worker. A committed receipt proves durable content and the producing Job/Trial; external `--model` registration imports metadata only and supplies no weights or producer provenance. See [Checkpoint publication](../training/checkpoints.md#worker-checkpoint-publication).

### Register a Harbor Dataset for Jobs {#asset-register}

```bash
el dataset create --format harbor --directory ./my-world --name my-team/claims-world --version 1.0.0 --wait --json
el dataset registration create ASSET_ID --runner envloop/harbor@FULL_COMMIT --wait --json
el dataset registration get ASSET_ID --json
el dataset task list ASSET_ID --split train --limit 25 --json
el dataset task get ASSET_ID TASK_NAME --split train --json
```

Harbor conversion validates `dataset.toml`, Task digests and pinned images without running Tasks. Use `--update-digests` only after reviewing local Task changes. The immutable content publication and execution registration are separate; check `asset.details.native_registered` and `native_ready` before submitting a Job. Registration continues on the platform without the CLI. A failure preserves the publication; publish changed content under a new version. Dataset Tasks are members, not Asset versions. Task listing and downloads require an explicit split, and may additionally select a config. See [Dataset guide](../guides/datasets.md) and [upload limits](../manage/limits.md#harbor-dataset-uploads).

Runner is maintained by the platform. Use `el runner list`, `get`, `download`, `file list` and authorized `set-visibility` for discovery and access; user extension content belongs in Recipes. Trial output publication is `el trial artifact create --file MANIFEST --directory DIR` and requires the producing worker's frozen output grant. Users inspect/download outputs through `trial artifact list`, `file list`, `get` and `download`; Artifact content never enters the user Assets aggregation.

Use `NAMESPACE/NAME@FULL_COMMIT` in `el runner get` or a JobSpec to select a specific Runner revision. If your project has a same-name Runner with other revisions, the lookup can still select the requested public revision. Unversioned discovery and `latest` prefer your project's Runner by name.


## Harbor task environment

For native oracle evaluation, select a published `envloop/harbor@REVISION`, use `el job submit --type bench --spec job.json`, provide a Dataset and `params.agent_name=oracle`, and omit `recipe`. Single-container and Compose Tasks share this Runner; the environment must enable its declared DinD capability.

The following Sandbox process-mode example requires a compatible fixed historical Harbor Runner and Recipe: `el job submit --type sandbox --spec job.json --harbor_env process`.
The option sets ordinary `params.harbor_env`; `docker` is the Runner default. An omitted option preserves the spec/Profile value.
Do not also set `harbor_env` through `--params` in the same command.

Process mode requests no DinD. Supply the Task directory as `inputs.task` (an Artifact) and select a prepared Task image with `params.image`.
A common base image may include Harbor and Docker/Compose tools for both modes, but it cannot supply every Task's dependencies.
Sandbox rejects Docker mode; use an authorized Bench execution with DinD for that mode.
New Runner/Recipe revisions and a compatible image are required; old revisions and completed Jobs retain their original behavior.


### Loop metadata updates

Use `el loop update LOOP_ID --spec FILE|JSON`, SDK `client.loops.update(loop_id, spec)`, or `PATCH /v1/rsi/loops/{loop_id}` with an `envloop.loop/v1` spec. Supplied name and description fields replace current values; omitted fields stay unchanged. See [Loop metadata](../guides/rsi-loops.md#update-metadata) for the format, permissions and examples.

`--spec` accepts a JSON file path or a quoted JSON object string.
