{/* AUTO-GENERATED FILE, DO NOT EDIT. Generated from the clap CLI definitions by the hidden `gen-cli-docs` subcommand. Regenerate with `scripts/generate-cli-docs.sh`. */} Reference for the `iii` binary. Running `iii` with no subcommand starts the engine. The same information is available from the binary itself via `iii --help` and `iii <subcommand> --help`. For a guided overview, see [CLI](../using-iii/cli).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Cli Reference?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/iii-hq-cli-reference-21eea42d)
<!-- generated by iii-skill-render. DO NOT EDIT (changes here are overwritten on the next render). Edit docs/next/cli-reference/index.mdx. -->
# CLI reference
{/* AUTO-GENERATED FILE, DO NOT EDIT. Generated from the clap CLI definitions by the hidden `gen-cli-docs` subcommand. Regenerate with `scripts/generate-cli-docs.sh`. */}
Reference for the `iii` binary. Running `iii` with no subcommand starts the engine. The same information is available from the binary itself via `iii --help` and `iii <subcommand> --help`. For a guided overview, see [CLI](../using-iii/cli).
## `iii`
Process communication engine
```text
iii [OPTIONS] [COMMAND]
```
| Option | Description |
| ------ | ----------- |
| `-c, --config <CONFIG>` | Path to the config file [default: config.yaml]. When the file does not exist, `iii` offers to create it with an empty workers list (and creates it without asking in non-interactive sessions) |
| `-v, --version` | Print version and exit |
| `--no-update-check` | Disable background update and security advisory checks |
**Subcommands:**
| Command | Description |
| ------- | ----------- |
| [`call`](#iii-call) | Call a function on a running iii engine |
| `cloud` | Manage iii Cloud deployments. Dispatches to the external `iii-cloud` binary, which is temporarily maintained outside this repository; run `iii cloud --help` for its current surface. |
| [`compose`](#iii-compose) | Serve worker-compose projects or prepare their registry packages |
| [`kill`](#iii-kill) | Stop iii processes by engine port, by compose project, or every orphaned worker |
| [`project`](#iii-project) | Manage iii projects (init, generate-docker) |
| [`ps`](#iii-ps) | List iii processes on this machine: engines, compose daemons and workers, with the compose project each belongs to |
| [`update`](#iii-update) | Update iii and managed binaries to their latest versions |
### `iii call`
Call a function on a running iii engine
When the function's request schema has a stream field named `stdout` or `stderr` that the function writes, or `stdin` that it reads, the call connects it to its own stdout, stderr or stdin. Streams named `stdout` or `stderr` in the result are printed as well. The call ends once the function answered and its streams ended. `--no-follow` turns all of this off and prints the result JSON instead.
While streams run, the first Ctrl+C or SIGTERM (Ctrl+Break on Windows) asks the function to stop and waits for its answer; a second one exits at once.
III_CALL_DEFAULTS holds a JSON object keyed by namespace, each holding entries keyed by function id: the entry of the called function in the namespace the call resolves in (`default` without `-n`) is the base payload, and `--json` and key=value override its keys. A parent process uses it to hand a call fields that must not appear in its arguments.
Alias: `trigger`, `t`
```text
iii call [OPTIONS] [FUNCTION_PATH] [KV]...
```
| Argument | Description |
| -------- | ----------- |
| `[FUNCTION_PATH]` | Function path (e.g. `my::fn`, `sandbox::create`). Positional |
| `[KV]...` | Key=value payload tokens (`a=10 b="hello world"`). Combinable with `--json`: kv pairs override individual keys of the json object |
| Option | Description |
| ------ | ----------- |
| `--json <JSON>` | JSON payload (`--json '{"a":1}'`). When combined with kv pairs the json must be an object; kv pairs override its keys (shallow merge) |
| `--engine <URL>` | Engine WebSocket address (`ws://host:port`). Overrides `III_URL` and the working directory's compose file. The local default is used when none of them supplies a URL. Encrypted (`wss://`) connections are not supported |
| `--address <ADDRESS>` | DEPRECATED: use `--engine ws://host:port`. Engine host address. Taken from `--engine`, `III_URL` or the working directory's compose file when omitted, else `localhost` |
| `--port <PORT>` | DEPRECATED: use `--engine ws://host:port`. Engine WebSocket port. Taken from `--engine`, `III_URL` or the working directory's compose file when omitted, else 49134 |
| `--timeout-ms <TIMEOUT_MS>` | How long to wait for the function's answer, in milliseconds. Defaults to 30000. A call to a function that takes a stream has no limit unless this is set: it lasts as long as the function runs |
| `--no-follow` | Run the call without its streams: stdin, stdout and stderr are not connected to the function, and the streams in its result are left unread. The result JSON is printed, with each stream shown as a ref. A function that takes a stream still runs with no time limit unless `--timeout-ms` sets one |
| `--print-result` | Also print the result JSON once the streams end. A call that carries no stream, or runs with `--no-follow`, always prints it |
| `-n, --namespace <NS>` | Namespace to resolve FUNCTION_PATH in. Omit to resolve in the engine's `default` namespace, also in a process with `III_NAMESPACE` set (a Compose script); routing is strict, so a function registered in another namespace is only reachable with this flag |
<Note>
`iii call <function> --help` also queries a running engine for the function's description, request schema and observer args, and says when the function is private (observed, not called). That output depends on which workers are registered and is not part of this page; see [Creating Workers / Functions](../creating-workers/functions#attach-request-and-response-schemas).
</Note>
### `iii compose`
Serve worker-compose projects or prepare their registry packages.
Without `--up`, worker-compose.yaml supplies daemon defaults but no project starts. Projects are then managed through `compose::*` calls. With `--up`, the initial project also starts, together with its declared engine unless `--engine` selects an existing one. `build` downloads packages without starting an engine or worker.
```text
iii compose [OPTIONS]
iii compose <COMMAND>
```
| Option | Description |
| ------ | ----------- |
| `--engine <URL>` | Existing engine WebSocket address. Overrides the compose file and III_URL. The local default is used when none of them supplies a URL |
| `-n, --namespace <NS>` | Namespace this daemon answers `compose::*` in and applies to every project it loads. Several daemons attach to one engine; this is what tells them apart |
| `--up` | Serve with one project brought up first, starting its declared engine unless `--engine` selects an existing one |
| `--frozen` | Require the selected compose file's lock to match and use only its exact package resolutions. Missing cache artifacts are downloaded from the URLs in the lock |
| `-f, --file <PATH>` | The compose file. Only valid with `--up`. Defaults to `./worker-compose.yaml`, the same fallback `compose::up` uses when a call names no file |
#### `iii compose build`
Download every registry package declared by the compose file
```text
iii compose build [OPTIONS]
```
| Option | Description |
| ------ | ----------- |
| `-f, --file <PATH>` | Compose file whose registry packages should be downloaded [default: worker-compose.yaml] |
| `--frozen` | Require an existing, current lock and do not resolve package selectors |
#### `iii compose logs`
Read retained worker stdout and stderr from a running Compose daemon
```text
iii compose logs [OPTIONS] [WORKER]
```
| Argument | Description |
| -------- | ----------- |
| `[WORKER]` | Worker to read. Omit to read every worker in the project |
| Option | Description |
| ------ | ----------- |
| `--engine <URL>` | Existing engine WebSocket address. The compose file and III_URL are used when omitted |
| `-n, --namespace <NS>` | Namespace of the Compose daemon that owns the project |
| `-f, --file <PATH>` | Compose file path on the daemon host. The daemon's default file is used when omitted |
| `--tail <TAIL>` | Number of recent lines to show before following new output [default: 100] |
| `-F, --follow` | Continue waiting for new output until interrupted |
| `--stream <STREAM>` | Restrict output to one process stream [possible values: stdout, stderr] |
<Note>
Without `--follow`, this command prints a recent snapshot and exits. With `--follow`, it long-polls and continues from per-worker cursors. Each worker has a 10 MiB active file and three archives; older output is deleted after rotation, and a cursor older than the retained history resumes from the most recent retained lines with a warning. See [The `compose::*` functions](../using-iii/compose#the-compose-functions) for the remote `compose::logs` fields: `cursors`, `tail`, `stream`, and `wait_ms`.
</Note>
### `iii kill`
Stop iii processes by engine port, by compose project, or every orphaned worker
```text
iii kill [OPTIONS] <--port <PORT>|--compose [<PATH>]|--orphans>
```
| Option | Description |
| ------ | ----------- |
| `--port <PORT>` | Stop the engine on this port, the compose daemon that manages it, and every worker pointed at it |
| `--compose <PATH>` | Stop a compose project: its daemon, managed engine and workers. Takes the compose file or its directory [default: ./worker-compose.yaml] |
| `--orphans` | Stop every compose worker whose compose daemon is gone |
| `--force` | Send SIGKILL at once instead of letting processes shut down |
### `iii project`
Manage iii projects (init, generate-docker)
```text
iii project <COMMAND>
```
#### `iii project generate-docker`
Generate Docker assets (Dockerfile, docker-compose.yml, .env) for an existing iii project
```text
iii project generate-docker [OPTIONS]
```
| Option | Description |
| ------ | ----------- |
| `-d, --directory <DIRECTORY>` | Target directory (defaults to current directory) |
| `--template-dir <TEMPLATE_DIR>` | Local directory to use for templates instead of fetching from remote (for template development and tests) |
#### `iii project init`
Initialize a new iii project in the current directory
```text
iii project init [OPTIONS] [NAME]
```
| Argument | Description |
| -------- | ----------- |
| `[NAME]` | Target directory for the new project (positional). Ignored when `--directory` is given. The project name is the resolved directory's name |
| Option | Description |
| ------ | ----------- |
| `-d, --directory <DIRECTORY>` | Target directory. Takes precedence over NAME. If neither NAME nor `--directory` is provided, the directory defaults to the current directory |
| `--docker` | Also generate Docker assets (Dockerfile, docker-compose.yml, .env). Equivalent to running `iii project generate-docker` separately |
| `-t, --template <TEMPLATE>` | Scaffold from a named template (e.g. "quickstart"). Opens the interactive scaffolder TUI |
| `--template-dir <TEMPLATE_DIR>` | Local directory to use for templates instead of fetching from remote (for template development and tests) |
| `--skip-iii` | Skip the iii-engine version compatibility check |
| `--allow-non-empty` | Allow initialization into a non-empty directory. Without this flag, init errors out if the target dir contains anything other than hidden dotfiles (e.g. `.git/`). Re-running init in a directory with `.iii/project.ini` is always allowed (idempotent re-init) |
| `--learn-iii` | Start the iii harness and take a quick look at what iii can do: scaffold the "harness" template into NAME, or into ./learn-iii (learn-iii-1, learn-iii-2, ... when taken) if no NAME is given, then start `iii compose --up` inside it. Cannot be combined with any other scaffolding option |
### `iii ps`
List iii processes on this machine: engines, compose daemons and workers, with the compose project each belongs to
```text
iii ps [OPTIONS]
```
| Option | Description |
| ------ | ----------- |
| `--json` | Print JSON instead of a table |
### `iii update`
Update iii and managed binaries to their latest versions
```text
iii update [OPTIONS] [COMMAND]
```
| Argument | Description |
| -------- | ----------- |
| `[COMMAND]` | Specific command or binary to update (e.g., "cloud", "self"). Use "self" or "iii" to update only iii. If omitted, updates iii and all installed binaries |
| Option | Description |
| ------ | ----------- |
| `--list-targets` | List the targets you can pass to `iii update [COMMAND]` and exit |
## Telemetry
The engine sends anonymous usage data by default. This data helps to improve iii. It contains no personal information unless you choose to enter your email address when you sign up. In that case, the engine attaches that email address to your usage profile.
`iii compose` also reports its own usage data, such as whether a run succeeded, how long it took, how many containers it managed, and a fixed error code if it failed. These reports never include file paths, container names, worker references, or error messages.
To turn the usage data off, do one of these:
- Set `III_TELEMETRY_ENABLED` to `false`, `0`, `no`, or `off` before you start `iii`. Letter case does not matter, and leading or trailing spaces are ignored. Any other value, or no value, keeps the usage data on. This disables both engine and `iii compose` product-usage reports.
- Create the file `~/.iii/telemetry_dev_optout`. The engine and `iii compose` read this marker whenever the process starts.
- Set `telemetry.enabled: false` in the engine configuration. This setting applies only to engine telemetry.
The engine and `iii compose` also turn their product-usage data off automatically if they detect that they are running in a CICD environment. When engine telemetry is off, the engine discards usage reports from workers instead of storing them.
This setting controls anonymous product-usage data only. It does not change OpenTelemetry observability (traces, metrics, and logs) for your own monitoring of your iii system.