docs
CLI

CLI

Deploy apps and manage your org from the terminal with the urun command line tool

The urun CLI is the operator's tool for getting Python apps onto uRun GPUs and inspecting what is running. It ships as the PyPI package urun-cli and installs a single binary named urun.

Two SDKs, three jobs — don't conflate them:

  • urun-cli (PyPI) — one package, two faces: it installs the urun command on this page and the importable urun compute library (from urun import App) you write your app against. There is no separate urun package on PyPI. See the Python SDK.
  • @urun-sh/core / @urun-sh/react (npm) — the browser client that connects to a live session. See the TypeScript SDK.

What the CLI does

The CLI talks to the uRun control plane over HTTPS. Everything it does is scoped to the org your API key belongs to.

  • Deploy a Python app — package the app directory, upload content-addressed blobs, register a manifest, and poll the build to readiness.
  • Inspect what is running — list apps (with a derived status), live and historical sessions, and currently-provisioned GPU/instance capacity.
  • Operate a single app — check status, scale replicas, set the session-concurrency limit, disable and re-enable.
  • Federate identity — register a trusted external JWT provider so your own users can open sessions against your apps (the terminal twin of the console's Frontend Auth page).

A complete tour in four commands

uv tool install urun-cli              # install
urun login --api-key urun_xxxxxxxx    # authenticate
urun deploy app.py                    # ship your app to GPUs
urun app list                        # see it go ready

Where to go next

On this page