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

# CLI overview and output modes

What the unitlab command-line tool covers, how commands are organized, and how to read their output.

The `unitlab` command comes with the Python package. It covers uploads, processing checks, library data, datasets, workflow tasks, releases, ontologies, cloud storage and embeddings. Use it in shell scripts, CI jobs and one-off admin work.

```bash
python -m pip install unitlab
unitlab --version
unitlab --help
unitlab release create --help
```

## Command groups

| Group                               | Does                                                                                                       |
| ----------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `unitlab configure`                 | Save the API key and URL                                                                                   |
| `unitlab project`                   | Create, update and delete projects; upload, import from cloud, attach; list Data Units; lidar scene status |
| `unitlab batch-queue`               | Follow processing of an upload                                                                             |
| `unitlab assets`, `unitlab folders` | Library files, custom metadata, folders, cloud sync, Data Groups                                           |
| `unitlab dataset`                   | Drafts and published versions                                                                              |
| `unitlab workflow`                  | Stages and tasks: claim, assign, submit, approve, reject, move                                             |
| `unitlab release`                   | Create, wait for and download releases                                                                     |
| `unitlab ontology`, `unitlab cloud` | Ontologies and cloud storage connections                                                                   |
| `unitlab embeddings`                | Embedding spaces, vectors and search                                                                       |

Every command and option is listed in the [CLI command reference](https://docs.unitlab.ai/api-sdk-cli/clis/cli-command-reference.md).

## Credentials

Each command takes `--api-key`. Without it the CLI reads `UNITLAB_API_KEY`, then the key saved by `unitlab configure`. Set `UNITLAB_API_URL` for a dedicated deployment. See [Authentication and API keys](https://docs.unitlab.ai/api-sdk-cli/get-started/authentication-and-api-keys.md).

Prefer the environment variable over `--api-key`, so the key stays out of your shell history.

## Output

| Mode                | Looks like                      | Use for               |
| ------------------- | ------------------------------- | --------------------- |
| Default, a list     | One `key=value` line per item   | Reading in a terminal |
| Default, one object | One `key: value` line per field | Reading in a terminal |
| `--json`            | Indented JSON                   | Scripts, with `jq`    |

```bash
unitlab project list
# id=7c9e6679-...  name=Warehouse picks  data_item_count=52

unitlab project list --json | jq -r '.[] | .id + "\t" + .name'
```

`batch-queue wait` always prints JSON. `release download` prints the path it wrote. Progress bars go to standard error and appear only in a terminal.

## Shell completion

```bash
unitlab --install-completion
```

## Related

[CLI quickstart](https://docs.unitlab.ai/api-sdk-cli/get-started/cli-quickstart.md) · [CLI automation and exit behavior](https://docs.unitlab.ai/api-sdk-cli/clis/cli-automation-and-exit-behavior.md) · [CLI command reference](https://docs.unitlab.ai/api-sdk-cli/clis/cli-command-reference.md)
