Skip to main content

RuntimeComputer CLI

This package provides the runtime command-line interface.

Current commands:

  • runtime create <name>
  • runtime console <name>
  • runtime list
  • runtime route <name>
  • runtime share <name> [--public | --creator | --shared]
  • runtime services <name>
  • runtime service add <name> <service-name> --command ...
  • runtime service delete <name> <service-name>
  • runtime wake <name>
  • runtime stop <name>
  • runtime delete <name>
  • runtime resolve <host>

The CLI talks to the Django control plane over HTTP for control-plane requests and over WebSockets for interactive console sessions.

Current auth note:

  • create, list, route, share, wake, stop, and delete require --auth-token or RUNTIMECOMPUTER_AUTH_TOKEN
  • the normal local flow is runtime login, which opens the Clerk-backed browser confirmation flow and stores RUNTIMECOMPUTER_AUTH_TOKEN locally
  • runtime resolve is an operator/debug command. It requires the internal edge token via --edge-token or RUNTIMECOMPUTER_EDGE_TOKEN.

Development

Install dependencies:

cd cli
uv sync

Run tests:

uv run python -m unittest discover -s tests

Examples:

uv run runtime login --api-origin http://127.0.0.1:8000
uv run runtime create my-app --api-origin http://127.0.0.1:8013 --auth-token "$RUNTIMECOMPUTER_AUTH_TOKEN"
printf 'pwd\nexit\n' | uv run runtime console my-app --api-origin http://127.0.0.1:8013 --auth-token "$RUNTIMECOMPUTER_AUTH_TOKEN"
uv run runtime share my-app --api-origin http://127.0.0.1:8013 --auth-token "$RUNTIMECOMPUTER_AUTH_TOKEN"
uv run runtime service add my-app web --command python --arg=-m --arg http.server --arg 3000 --port 3000 --cwd /workspace --env PORT=3000 --api-origin http://127.0.0.1:8013 --auth-token "$RUNTIMECOMPUTER_AUTH_TOKEN"
uv run runtime services my-app --api-origin http://127.0.0.1:8013 --auth-token "$RUNTIMECOMPUTER_AUTH_TOKEN"
uv run runtime list --api-origin http://127.0.0.1:8013 --auth-token "$RUNTIMECOMPUTER_AUTH_TOKEN"
uv run runtime delete my-app --api-origin http://127.0.0.1:8013 --auth-token "$RUNTIMECOMPUTER_AUTH_TOKEN"
uv run runtime resolve my-app.runruntime.dev --api-origin http://127.0.0.1:8013 --edge-token "$RUNTIMECOMPUTER_EDGE_TOKEN"

Metadata

Release files for runtimecomputer-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for runtimecomputer-cli 0.1.0
File Size Uploaded
runtimecomputer_cli-0.1.0.tar.gz 27.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for runtimecomputer-cli 0.1.0
File Interpreter ABI Platform
runtimecomputer_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 51.3 kB

Release files / runtimecomputer_cli-0.1.0.tar.gz

Download URL runtimecomputer_cli-0.1.0.tar.gz
Size 27.9 kB
Tags Source
SHA-256 checksum
How to use checksums
82b670a96ae4bd51687c0a06156f3b32a8f804ba3b905fe4105727b3362fd545
BLAKE2b-256 checksum
How to use checksums
1008e22aed4b41e33414c5f337967131fef304e48c6de40e31a23968d9a4e770
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Release files / runtimecomputer_cli-0.1.0-py3-none-any.whl

Download URL runtimecomputer_cli-0.1.0-py3-none-any.whl
Size 23.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e69109c97abe17c02c7a7ebf98cb326861ab98856087359d6b505386fb2c1f8
BLAKE2b-256 checksum
How to use checksums
71eeab0d17f06adf79cdce64a13c57db3215deb1d1a7f195e7731314a45c318b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page