Skip to main content

RuntimeComputer CLI.

Project description

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"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

runtimecomputer_cli-0.1.0.tar.gz (27.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

runtimecomputer_cli-0.1.0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file runtimecomputer_cli-0.1.0.tar.gz.

File metadata

  • Download URL: runtimecomputer_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 27.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for runtimecomputer_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 82b670a96ae4bd51687c0a06156f3b32a8f804ba3b905fe4105727b3362fd545
MD5 c2e1bd794881331f9e5536c7a38deff1
BLAKE2b-256 1008e22aed4b41e33414c5f337967131fef304e48c6de40e31a23968d9a4e770

See more details on using hashes here.

File details

Details for the file runtimecomputer_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for runtimecomputer_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e69109c97abe17c02c7a7ebf98cb326861ab98856087359d6b505386fb2c1f8
MD5 19945e15f6b9cccc99c254fb8a691669
BLAKE2b-256 71eeab0d17f06adf79cdce64a13c57db3215deb1d1a7f195e7731314a45c318b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page