Metadata-Version: 2.5
Name: raystorm-cli
Version: 0.1.0
Summary: Command line for the Raystorm cloud render farm: upload a scene, submit a render and follow it, from a terminal or a pipeline.
Project-URL: Homepage, https://raystorm.io
Project-URL: Documentation, https://raystorm.io/docs
Author: Ayudh Inc.
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: animation,blender,gpu,pipeline,render farm,rendering,vfx
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Multimedia :: Graphics :: 3D Rendering
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27.0
Requires-Dist: rich>=13.0.0
Requires-Dist: typer>=0.12.0
Description-Content-Type: text/markdown

# raystorm-cli

The command line for [Raystorm](https://raystorm.io), a cloud render farm for
Blender. Upload a scene, submit a render, and follow it frame by frame, from a
terminal or from a pipeline that has nobody at the keyboard.

Raystorm is in an invite-only beta. You need a studio account to use this.

## Install

```
pip install raystorm-cli
raystorm --help
```

Python 3.10 or newer.

## Sign in

A pipeline signs in with an API key. Create one in the console under
**Settings**; it is shown once and works until you revoke it.

```
export RAYSTORM_API_KEY=rsk_…
raystorm job list
```

With `RAYSTORM_API_KEY` set, the CLI needs no login step and no config file.

On a machine you sit at, either store a key or sign in as yourself:

```
raystorm login --api-key      # asks for the key and stores it
raystorm login                # asks for your email and password
raystorm logout               # removes what was stored
```

A stored credential lives in `~/.raystorm/config.json`, readable only by you.
A person's sign-in lasts an hour. A key lasts until it is revoked.

## Render something

```
raystorm asset push shot.blend
raystorm job submit --scene <asset id> --frames 1-240 --gpu-type "<gpu id>"
raystorm job status <job id>
raystorm job download <job id> --to renders/
```

`job submit` prices the render and reserves the credits in the same call.
`--gpu-type` takes a GPU's id exactly as the rate card in the documentation
prints it.

## Commands

| Command | What it does |
| --- | --- |
| `raystorm asset push <path>` | Upload a scene and print its asset id |
| `raystorm asset list` | The studio's uploaded assets |
| `raystorm job submit` | Submit a render |
| `raystorm job list [--status STATUS]` | The studio's jobs |
| `raystorm job status <job id>` | One job, with its frame progress |
| `raystorm job logs <job id>` | A job's history: each change of state and the reason |
| `raystorm job cancel <job id>` | Stop a pending or running job |
| `raystorm job download <job id> [--to DIR]` | Fetch the rendered frames |
| `raystorm credits balance` | The studio's credit balance |
| `raystorm credits history` | The credit ledger |
| `raystorm queue status` | The studio's jobs, counted by state |

`job download` writes into `./<job id>` unless told otherwise, skips frames
that are already there, and can be run again after an interruption: a file is
given a frame's name only once the whole frame has arrived.

Every command exits non-zero when it fails and prints the reason on standard
error, so a script can stop on it.

## Environment

| Variable | Meaning |
| --- | --- |
| `RAYSTORM_API_KEY` | The API key to sign in with. Wins over anything stored. |
| `RAYSTORM_API_URL` | The API to talk to, when it is not Raystorm's own. |

## Documentation

Flags, job states, how a render is priced and the rate card:
<https://raystorm.io/docs>

## License

Apache-2.0.
