Metadata-Version: 2.1
Name: orchestral-operator
Description-Content-Type: text/markdown
Summary: Orchestral operator commands for capacity, models and benchmarking
Requires-Python: >=3.12
Requires-Dist: orchestral-labs[benchmark]==0.3.0
Requires-Dist: tabulate>=0.9
Version: 0.3.0

# operator-cli

The `orchestral-operator` CLI for Orchestral Labs platform operators.

- **Kind:** distribution
- **Language:** Python
- **Deploys as:** PyPI package `orchestral-operator`, released on a `components/operator-cli/v*` tag (`.github/workflows/publish.yml`)

Command-line tools for Orchestral Labs platform operators: capacity and Compute targets, model
import and catalog, placement, benchmarks and the environment smoke ladder.

```bash
pip install orchestral-operator
orchestral-operator login
orchestral-operator whoami
```

The CLI is `orchestral-operator`, with `op` as a shorthand for typing. It installs the matching
`orchestral-labs` release, whose `orchestral` CLI and SDK customers use.

Operator commands need an Orchestral Labs operator account. Customers do not need this package:
install `orchestral-labs` instead.

## Install with uv from Git

Staff can install the CLI as a [uv tool](https://docs.astral.sh/uv/guides/tools/) straight from
the private `orchestral-labs/orchestral` repository. This needs GitHub access to that repository:
an SSH key on your GitHub account for `git+ssh://`, or `gh auth setup-git` for
`git+https://github.com/orchestral-labs/orchestral@...`.

A release (recommended). A release tag is the package's folder and its version:
`components/operator-cli/v<version>`. Releases up to and including 0.2.0 were made when the package
was in `packages/operator`, so their tags are `packages/operator/v<version>`. The `subdirectory=`
is the folder in the tag. The 0.2.0 release:

```bash
uv tool install "git+ssh://git@github.com/orchestral-labs/orchestral@packages/operator/v0.2.0#subdirectory=packages/operator"
```

A later release:

```bash
uv tool install "git+ssh://git@github.com/orchestral-labs/orchestral@components/operator-cli/v<version>#subdirectory=components/operator-cli"
```

`main`:

```bash
uv tool install "git+ssh://git@github.com/orchestral-labs/orchestral@main#subdirectory=components/operator-cli"
```

`main` pins `orchestral-labs` to the version in its `pyproject.toml`, which may not be on PyPI yet.
Between releases this install can fail; then install a release tag.

To move to another release or to `main`, install again with the new ref and `--force`.
`uv tool upgrade orchestral-operator` fetches the same ref again: it moves a `main` install to the
latest `main` and leaves a tag install where it is.

```bash
uv tool install --force "git+ssh://git@github.com/orchestral-labs/orchestral@<ref>#subdirectory=<path>"
uv tool upgrade orchestral-operator
uv tool uninstall orchestral-operator
```

In a checkout of the repository, `just install` installs both packages for development.

